I am trying to remove a div from the page (it is desirable that it does not load at all), but now I agree to delete it after the page loads.
When I try the following lines of code in jsFiddle , the div #contentis deleted as expected.
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){
$('#content').remove();
});//]]>
</script>
However, I also tried to implement it on the actual website , but in this case the div is #contentnot deleted.
Any suggestions as to what might be wrong?
user1696812
source
share