jquery remove removing from another element

前端 未结 4 1049
清酒与你
清酒与你 2021-01-23 15:58

According to here, jquery\'s remove function should work like so..

$(\'div\').remove(\'selector\'); 

Which I\'m trying in this example.

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-23 16:24

    try this

     $(document).ready(function() {
        $('div').find('p.unwanted').attr('class', '');
    });
    

提交回复
热议问题