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. Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.