sazzie Posted January 15, 2007 Share Posted January 15, 2007 Hi guys,I would like some simple code direction please. Can anyone show me what javascript code to remove a DIV using DOMlooks like?Thanks. Link to comment https://forums.phpfreaks.com/topic/34230-div-removal/ Share on other sites More sharing options...
Zeon Posted January 15, 2007 Share Posted January 15, 2007 if the div has an id associated with it then it's simple:[code]var div = document.getElementById('div_id')div.parentNode.removeChild(div)[/code] Link to comment https://forums.phpfreaks.com/topic/34230-div-removal/#findComment-161053 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.