Overview | IndexGodLikeMouse JavaScript Framework
FRAMES | NO FRAMES

GLM.DOM.GetChildrenByTagName( element, tagName )

GLM.DOM.GetChildrenByTagName( element, tagName )

Method for returning all children 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.GetChildrenByTagName(el, "span"); //get all span children



Overview | IndexGodLikeMouse JavaScript Framework
FRAMES | NO FRAMES