Possible Duplicate:
JavaScript: remove element by id
I only know their respective ids and don't know specifically about their parent nodes....
Possible Duplicate:
JavaScript: remove element by id
I only know their respective ids and don't know specifically about their parent nodes....
You can use parentNode
on the element to get its parent, and use removeChild
on it.
var el = document.getElementById( 'id' );
el.parentNode.removeChild( el );
In jQuery, just $('#your_id').remove();
will work.