jQuery conflict when removing div after page load

后端 未结 8 540
北海茫月
北海茫月 2021-01-13 07:07

I\'m trying to remove a div from the page (preferably prevent it from loading at all) but for now I\'m settling on removing it after the page loads.

When I try the f

8条回答
  •  我在风中等你
    2021-01-13 07:39

    Case of jquery conflict. You have mootools framework too on the page.

    Also I did a 'view source' of the page and I found out this line

    $j = jQuery.noConflict();  //line 132
    

    So try this

    $j('#content').remove();
    Or
    jQuery('#content').remove();
    

提交回复
热议问题