Overview | IndexGodLikeMouse JavaScript Framework
FRAMES | NO FRAMES

GLM.DOM.GetDescendantsByTagName( element, tagName )

GLM.DOM.GetDescendantsByTagName( element, tagName )

Method for returning all descendants of an element that match the tag name specified.

Parameters:

element - The parent element.

tagName - the tag name to find.

Returns:

An array of matching child elements.

Example:

var el = document.getElementById("myDiv");
var nodes = GLM.DOM.GetDescendantsByTagName(el, "span"); //get all span descendants



Overview | IndexGodLikeMouse JavaScript Framework
FRAMES | NO FRAMES