I'm trying to remove all elements with a specific ID (and children) using jQuery within a WordPress website on page load. I'm using the following with no success:
<script>
$(document).ready(function(){
$("#contentLeft").remove();
});
<script>
There are many pages containing this ID, but there is only one instance per page. Should I place the script in the , before the , after the , etc? Any help would be appreciated.