Check the element and ancestors' children to find the closest (previous) element that matches a class AND selector.
Check the element and ancestors' children to find the closest (previous) element that matches a class AND selector. (e.g. closestWithAncestorChildren("input[type='password']") will find the closest password input field that was defined before the current element)
Find the closest (this element, ancestor, or a child of an ancestor) that matches a class.
Find the closest (this element, ancestor, or a child of an ancestor) that matches a class. (e.g. closestWithAncestorChildren[Input] will find the closest input field that was defined before the current element)
Shortcut for window.getComputedStyle(elem, pseudoElem)
Shortcut for window.getComputedStyle(elem, pseudoElem)
Shortcut for window.getComputedStyle(elem)
Helpers for accessing the "user-" attributes
Helpers for accessing the "user-" attributes
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_data_attributes
Toggle between two attribute values, e.g.
Toggle between two attribute values, e.g. (
passwordField.toggleAttributeValue("type", "text", "password")
) passwordField.toggleAttributeValue("type", "text", "password") }}}
Toggle between two classes, e.g.
Toggle between two classes, e.g. (
icon.toggleClass("glyphicon-eye-close", "glyphicon-eye-open")
) icon.toggleClass("glyphicon-eye-close", "glyphicon-eye-open") }}}