Methods
(static) attr(name, value) → {Dollarsign|string|null}
Alter attributes for all elements in the selection.
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
|
value |
string
|
null
|
Returns:
- Type:
-
Dollarsign
|string
|null
(static) closest(selector) → {Dollarsign}
Return an Dollarsign object for DOM elements above this selector.
Parameters:
Name | Type | Description |
---|---|---|
selector |
string
|
CSS Selector to search for. |
(static) find(selector) → {Dollarsign}
Return an Dollarsign object for DOM elements undernerath this selector.
Parameters:
Name | Type | Description |
---|---|---|
selector |
string
|
CSS selector to search for. |
(static) html(content) → {string|Dollarsign}
Return the inner HTML of the element.
Parameters:
Name | Type | Description |
---|---|---|
content |
string
|
(optional) - Set the inner HTML. |
(static) text(content) → {string|Dollarsign}
Returns the inner text of the element.
Parameters:
Name | Type | Description |
---|---|---|
content |
string
|
(optional) - Set the inner text. |