forEach
fna function with 3 arguments : (element, index, the collection)
Iterate over the collection, executing a function for each matched element.
fna function with 3 arguments : (element, index, the collection)
Iterate over the collection, executing a function for each matched element.
.addClass( className )
classNameOne or more space-separated classes to be added to the class attribute of each item of the collection.
Adds the specified class(es) of each item of the collection.
.removeClass(className)
className : One or more space-separated classes to be removed from each item of the collection.
Remove a single class, multiple classes, or all classes from each item of the collection.
.toggleClass(classNames)
classNames
Add or remove one or more classes from each element of the collection, depending on either the class’s presence or the value of the state argument.
.setClass(classNames)
classNames
.css(jsonObject)
jsonObject
Return the css properties or set the css properties.
.show(visible)
visibleboolean indicate if show or hide
Display the element.
.remove()
Remove each element of the collection