开发者

Copying form fields with jQuery plugin

开发者 https://www.devze.com 2023-02-25 00:03 出处:网络
I\'d like to use the following jQuery plugin to add additional form fields: http://www.andresvidal.com/labs/relcopy.html

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

精彩评论

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

关注公众号