jQuery remove last-child of a class

后端 未结 1 811
不知归路
不知归路 2021-01-27 01:48

I am working on a dynamic form, the rows are having parent dropdowns, and when we select a parent it adds new ROWs for number of childs, I have given classes to each child rows.

1条回答
  •  独厮守ぢ
    2021-01-27 02:40

    try

    $('tr.partnumber_2_sub').last().remove()
    

    0 讨论(0)
提交回复
热议问题