html - jQuery and Form Object Array -


this form input objects same names , unknown number of clones/duplicates such one:

<input name="field[]" id="field[]" value=""> 

using jquery, dynamically add copies of object theoretically makes this:

<input name="field[]" id="field[]" value=""> <input name="field[]" id="field[]" value=""> <input name="field[]" id="field[]" value=""> <input name="field[]" id="field[]" value=""> 

... , 1 , forth.

question: show me reference such objects, example, on-change procedure.

thanks in advanced.

it not valid have multiple elements same id.

you can n-th input using:

$('input').eq(n) 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -