dom

The `dom` module includes functionality for DOM traversal and manipulation.
Source:

Methods

(static) attr(name, value) → {Dollarsign|string|null}

Alter attributes for all elements in the selection.
Source:
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.
Source:
Parameters:
Name Type Description
selector string CSS Selector to search for.
Returns:
Type:
Dollarsign
New Dollarsign object representing selection.

(static) find(selector) → {Dollarsign}

Return an Dollarsign object for DOM elements undernerath this selector.
Source:
Parameters:
Name Type Description
selector string CSS selector to search for.
Returns:
Type:
Dollarsign
New Dollarsign object representing selection.

(static) html(content) → {string|Dollarsign}

Return the inner HTML of the element.
Source:
Parameters:
Name Type Description
content string (optional) - Set the inner HTML.
Returns:
Type:
string | Dollarsign
html value or this object.

(static) text(content) → {string|Dollarsign}

Returns the inner text of the element.
Source:
Parameters:
Name Type Description
content string (optional) - Set the inner text.
Returns:
Type:
string | Dollarsign
text value or this object.