Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- can I delete the parent after the child.


Skier88 - 9:28 pm on Dec 2, 2011 (gmt 0)


If you're deleting the parent you don't have to delete the child first.

event.target.parentNode.parentNode.removeChild(event.target.paretNode);


You could also probably use "this" instead of "event.target".

this.parentNode.parentNode.removeChild(this.paretNode);


Thread source:: http://www.webmasterworld.com/javascript/4393555.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com