How to get an Array in jQuery with multiple-input (same input id)

Posted by x4tje on Stack Overflow See other posts from Stack Overflow or by x4tje
Published on 2010-04-13T07:48:02Z Indexed on 2010/04/13 7:52 UTC
Read the original article Hit count: 504

Filed under:
|
|
|

Hello,

I've a form where you're able to add more input fields with jQuery.

<input type="text" id="task" name="task[]" />

I get an array when i print it with php after submitting the form.

I want to handle this with the $.ajax() but i've no idea how i can turn up my <input type="text" id="task" name="task[]" /> in an array in jQuery.

Thanks in advance,

Firdaus

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about array