ukeGeeks.toolsLite Class
some jQuery-like tools (very, very crappy. wish we could count on jQuery being on the page.) if you do want to use jQuery (and why wouldn't you) I'm not offended if you yank this out.
Methods
addClass
(
Void
-
element
-
className
adds className to element.
Parameters:
-
element
DOM_elementtarget element
-
className
StringCSS classname to add
Returns:
Void:
getElementsByClass
(
ArrayDomElements
-
searchClass
-
node
-
tag
Searches within Node for tags with specified CSS class.
Parameters:
-
searchClass
StringCSS Classname
-
node
HtmlNodeparent node to begin search within. Defaults to entire document.
-
tag
Stringrestrict search to a specific tag name. defaults to all tags.
Returns:
ArrayDomElements:
trim
(
String
-
str
Removes all white space at the begining and end of a string.
Parameters:
-
str
StringString to trim.
Returns:
String:
Returns string without leading and following white space characters.
Properties
_public
Object
attach public members to this object