Copying form fields with jQuery plugin
I'd like to use the following jQuery plugin to add additional form fields:
http://www.andresvidal.com/labs/relcopy.html
The problem is that it does add additional form fields but does not create form names. If I submit this form only the last fiel开发者_开发技巧d will be submitted. How do I add unique name to each created form field?
Since it copies the element (here the form field), you can use <input name="phone[]" type="text"/>
as the original field.
精彩评论