new Element()
- Source:
Classes
Methods
-
attr()
-
Prefer use of Element#getAttribute and Element#setAttribute
.attr(values) .attr(name, value) .attr(name)
-
empty()
-
Remove the children's element
-
getAttribute(attributeName) → {string}
-
Get the value of an attribute
Parameters:
Name Type Description attributeName
string - Source:
Returns:
- Type
- string
-
getValue() → {string}
-
Get value
- Source:
Returns:
- Type
- string
-
hide()
-
Hide the element (add the class .hidden)
-
prop()
-
Prefer use of Element#getProperty and {@link Element#setProperty}
.prop(properties) .prop(name, value) .prop(name)
-
remove()
-
Remove the element from the DOM
-
setValue(_class) → {Element}
-
Set value
Parameters:
Name Type Description _class
string - Source:
Returns:
- Type
- Element
-
show()
-
Show the element (remove the class .hidden)
-
stop()
-
Stop any animations for the element
-
style()
-
Prefer use of Element#getStyle and {@link Element#setStyle}
.style(properties) .style(name, value) .style(name)
-
toggle()
-
Toggle an element's visibility using the hidden class