Values

Values

Source:
Value & content related functions

Methods

(static) getHTML(el, positionopt) → {String}

Source:
Get a node's html
Parameters:
Name Type Attributes Default Description
el Element
position String(inner, outer) <optional>
inner
Returns:
Type
String

(static) getText(el) → {String}

Source:
Get text content of a node (uses textContent)
Parameters:
Name Type Description
el Node
Returns:
Type
String

(static) getValue(el) → {String}

Source:
Get an input/textarea's value
Parameters:
Name Type Description
el HTMLInputElement | HTMLTextAreaElement
Returns:
Type
String

(static) isChecked(el) → {Bool}

Source:
Get an input/textarea's value
Parameters:
Name Type Description
el HTMLInputElement HTML Input element of type checkbox or radio
Returns:
Type
Bool

(static) setHTML(el, html)

Source:
Get a node's html
Parameters:
Name Type Description
el Element
html String

(static) setText(el, text)

Source:
Set text content of a node
Parameters:
Name Type Description
el Node
text String

(static) setValue(el, val)

Source:
Set an input/textarea's value
Parameters:
Name Type Description
el HTMLInputElement | HTMLTextAreaElement
val String