PDA

View Full Version : DomHelper Remove?



Slapyo
29 Nov 2006, 4:02 PM
There is append and I am using that but I would also like to remove elements. Maybe this could be added into the DomHelper.

But in the mean time, how do I go about removing an element??

edit: nevermind, looks like it is easy enough to not need to include it in DomHelper.

parentelement.removeChild(elementtoremove);

Animal
30 Nov 2006, 12:10 AM
References added here: http://www.yui-ext.com/forum/viewtopic.php?p=4541#4541

jack.slocum
30 Nov 2006, 5:33 AM
The Element object also has a remove() method.