Clone
and change id

前端 未结 4 1928
伪装坚强ぢ
伪装坚强ぢ 2020-12-01 06:30

How can I using javascript make clone of some

and set his id different from original. Jquery also will be nice.

4条回答
  •  臣服心动
    2020-12-01 06:52

    I had the same problem. I've solved that by setting a counter and appending it to the ID. Hope it helps you too:

    
    

提交回复
热议问题