Methods
(static) getHTML(el, positionopt) → {String}
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}
Get text content of a node (uses textContent)
Parameters:
Name | Type | Description |
---|---|---|
el |
Node |
Returns:
- Type
- String
(static) getValue(el) → {String}
Get an input/textarea's value
Parameters:
Name | Type | Description |
---|---|---|
el |
HTMLInputElement | HTMLTextAreaElement |
Returns:
- Type
- String
(static) isChecked(el) → {Bool}
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)
Get a node's html
Parameters:
Name | Type | Description |
---|---|---|
el |
Element | |
html |
String |
(static) setText(el, text)
Set text content of a node
Parameters:
Name | Type | Description |
---|---|---|
el |
Node | |
text |
String |
(static) setValue(el, val)
Set an input/textarea's value
Parameters:
Name | Type | Description |
---|---|---|
el |
HTMLInputElement | HTMLTextAreaElement | |
val |
String |