开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜