Displaying 1 result from an estimated 1 matches for "taggedelements".
2005 Nov 24
1
Extended $ function called $$
...rray[i];
if(Element.Class.has_any(descendant,className)){
elements.push(descendant);
}
}
// "type.class" find any type of element of a given tag and class
}else{
var tagName = part.substring(0,dotPos);
var className = part.substring(dotPos+1,part.length);
var taggedElements = element.getElementsByTagName(tagName);
for(var i=0; i<taggedElements.length; i++){
var tempElement = taggedElements[i];
if(Element.Class.has_any(tempElement,className)){
elements.push(tempElement);
}
}
}
// if the selector only has one part, then return the elements...