Menu
I have an element with an ID that is a child of an element that can be removed from the document.body. It still exists (it can be put back), but I can’t figure out a good way to find the child element. The best I can come up with is this (which is not efficient):
[CODE]
var possibleNodes = parent.getElementsByTagName( “div” );
//Then loop through…
while ( … )
{
if ( child.getAttribute( “id” ) == theID ) …
}
Is there a better way?