Delete dynamically-generated table row using jQuery

前端 未结 6 2002
情深已故
情深已故 2020-12-31 02:28

the code below add and remove table row with the help of Jquery the add function works fine but the remove only work if I remove the first row

         


        
6条回答
  •  有刺的猬
    2020-12-31 03:01

    When cloning, by default it will not clone the events. The added rows do not have an event handler attached to them. If you call clone(true) then it should handle them as well.

    http://api.jquery.com/clone/

提交回复
热议问题