search for: dotpos

Displaying 1 result from an estimated 1 matches for "dotpos".

Did you mean: dotos
2005 Nov 24
1
Extended $ function called $$
...#39;',''%'']; // A private function used by $$(). // Separated because it needs to make recursive calls. $$.getSubelementsBySelector = function(element,selector){ var elements = []; var partArray = selector.split('' ''); var part = partArray[0]; var dotPos = part.indexOf(''.''); // the dot position (-1 if not found) if (dotPos == -1){ var nodeList = document.getElementsByTagName(part); elements.append(nodeList); // ".class" find any type of element of a given class. } else if (dotPos == 0) { var descendantArr...