Clone in JQuery and adding unique IDs for each

前端 未结 2 535
感动是毒
感动是毒 2020-12-17 05:23

I\'m creating a simple web app, where users come in; make a selection from drop down boxes and enter some text. Once this is completed, users press a \"generate\" button whi

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-17 05:50

    I think you can use jQuery clone() function to implement your "add row" functionality.

    Check out the last example for giving each new row an unique id.

提交回复
热议问题