jQuery: remove element by id
$('#toremove').remove();
should do what you need. Are you sure there isn't a problem elsewhere in your code?
Example
Maybe you are removing the div
when its not even created.
do something like this :
$(function(){
$("#id").remove();
});
This will make sure the dom
is ready.
Also see to it that your id is unique
!