addClass
.addClass( className )
classNameOne or more space-separated classes to be added to the class attribute of the element.
Adds the specified class(es) to the element
.addClass( className )
classNameOne or more space-separated classes to be added to the class attribute of the element.
Adds the specified class(es) to the element
.removeClass(className)
className : One or more space-separated classes to be removed from the class attribute of the element.
Remove a single class, multiple classes, or all classes from the element
.toggleClass(classNames)
classNames
Add or remove one or more classes from the element, depending on either the class’s presence or the value of the state argument.
.remove()
remove the element from DOM (polyfill for IE).
.val(str)
strvalue to set to the element
if str is provided, add a attribute called value and set the value to str else return the value of the attribute 'value'
.setClass(classNames)
classNames
.hasClass(className)
className
Determine whether any of the matched elements are assigned the given class.
.css(jsonObject)
jsonObject
Return the css properties or set the css properties.
.beforeBeginHTML(htmlString)
htmlString
Insert html string, specified by the parameter, before the beginning of the element
.afterBeginHTML(htmlString)
htmlString
Insert html string, specified by the parameter, after the beginning of the element
.beforeEndHTML(htmlString)
htmlString
Insert html string, specified by the parameter, before the end of the element
.afterEndHTML(htmlString)
htmlString
Insert html string, specified by the parameter, after the end of the element
.beforeBegin(htmlElement)
htmlElement
Insert the element, specified by the parameter, before the beginning of the element
.afterBegin(htmlElement)
htmlElement
Insert the element, specified by the parameter, after the beginning of the element
.beforeEnd(htmlElement)
htmlElement
Insert the element, specified by the parameter, before the end of the element
.afterEnd(htmlElement)
htmlElement
Insert the element, specified by the parameter, after the end of the element
.outerHeight()
Get the current computed outer height (including padding, border, and optionally margin) for the element in the set of matched elements
Hello
.outerWidth()
Get the current computed outer width (including padding, border, and optionally margin) for the element.
Hello
.show(visible)
visibleboolean indicate if show or hide
Display or hide the element.
.isVisible()
Indicate if the element is visible or not
.toggleVisible()
Toggle visibility of the element
.html(htmlString)
htmlString if specified, set the inner HTML of the element with it, else return the inner HTML
Get the inner HTML contents of the element or set the inner HTML contents of the element.
Hello Martin
.text(str)
strif specified, set the inner text of the element with it, else return the text of the element
Get the combined text contents of the element, including their descendants
Hello Martin
.parent()
Get the parent of the element.
Hello Martin
.outerHtml()
Hello Martin
.attr(attributeName[,attributeValue])
attributeName
attributeValue
Get the value of an attribute for the element or set one attribute for the element.
.attrs()
Get the list of attributes of the element.
.contains(elem)
elem
.offset()
Get the current coordinates of the element.
.qs(selectors)
selectors
execute the querySelector function with the specified argument relative to the elementreturns the first Element within the document that matches the specified selector, or group of selectors. If no matches are found, null is returned.
.qsa(selectors)
selectors
returns all elements within the document that matches the specified selector, or group of selectors. If no matches are found, null is returned.
.qsn(selectors)
selectors
returns the first Element within the document that have the specified name. If no matches are found, null is returned.
.qsnames(selectors)
selectors
returns all Elements within the document that matches the specified name. If no matches are found, null is returned.