I have 100 inputs with name - table[].
How to get their value with jQuery,like $_POST ,as I do in PHP.
I tryed

$("input[name='table[]']").each(function() {
document.write($(this).val());


});

but I want to get them as an array.

You probably want to use jQuery's .serializeArray() method.

The examples in the API should be enough to get you started.

Airshow

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.