Namespace $_.dom
Defined in: DOM.js.
Method Summary
attr(string, string)
Sets attributes on element(s) specified by the current selector, or, if name is not specified, returns the value of the attribute of the element specified by the current selector.
css(string, string)
Sets or retrieves a css property of the element specified by the current selector.
Method Detail
$_.dom.addClass(string)
Adds a class to the element(s) specified by the current
selector
Parameters:
string | class |
Returns:
void |
$_.dom.removeClass(string)
Removes a class from the element(s) specified by the current
selector
Parameters:
string | class |
Returns:
void |
$_.dom.show(string)
Shows the element(s) specified by the current selector.
if type is specified, the element will have it's style
property set to "display:[your type]". If type is not
specified, the element is set to "display:block".
Parameters:
string?, Default: | type |
Returns:
void |
$_.dom.attr(string, string)
: string
Sets attributes on element(s) specified by the current
selector, or, if name is not specified, returns the
value of the attribute of the element specified by the
current selector.
Parameters:
string | name | |
string | value |
Returns:
string |
$_.dom.text(string)
: string
Sets or retrieves the text content of the element
specified by the current selector. If a value is
passed, it will set that value on the current element,
otherwise it will return the value of the current element
Parameters:
string?, Default: | value |
Returns:
string |
$_.dom.css(string, string)
: string
Sets or retrieves a css property of the element
specified by the current selector. If a value is
passed, it will set that value on the current element,
otherwise it will return the value of the css property
on the current element
Parameters:
string | property | |
string?, Default: | value |
Returns:
string |