How can i delete all divs with a certain class name?

前端 未结 1 1641
长发绾君心
长发绾君心 2021-02-12 10:57

Using jquery, what is the best way to delete all divs with a certain class name ? (I don\'t want to just hide the div but fully delete it). So if I have this code:



        
1条回答
  •  鱼传尺愫
    2021-02-12 11:41

    $("div.Test").remove();
    

    That'll do it.

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