How to remove all elements in a div after a certain div

后端 未结 5 1245
既然无缘
既然无缘 2021-01-20 04:31

So I have a div that is drawing in dynamic elements at its bottom and I want to hide these elements, no matter what their IDs are using javaScript/jQuery. Basically my HTML

5条回答
  •  旧时难觅i
    2021-01-20 05:03

    Target the class instead of the dynamic ID.

    $('.right-panel . element-to-remove').remove();

提交回复
热议问题