How to get an Array from jQuery, multiple <input>s with the same 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 8:12 UTC
Read the original article Hit count: 284

Filed under:
|
|

I have a form where users can add input fields with jQuery.

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

After submitting the form I get an array on PHP.

I want to handle this with the $.ajax() but I have no idea how to turn my <input>s to an array in jQuery.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about array