jquery removeClass() method
Translation results:
remove
UK[rɪˈmu:v] US[rɪˈmuv]
vt.Remove; expel; take off, take off; migrate
vi. Migrate, move; leave
n.Distance, gap; move
class
英[klɑ:s] 美[klæs]
n.Class; class; grade; category
vt. Classify… into a certain level, treat… as (or classify, classify); put… into a certain class
adj. Very good, excellent, outstanding
vi. Belong to... category (or level), be listed as a certain category (or level)
jquery removeClass() methodsyntax
Function: removeClass() method removes one or more classes from the selected element. If no parameters are specified, this method will remove all classes from the selected elements.
Syntax: $(selector).removeClass(class)
Parameters:
Parameter | Description |
class | Optional. Specifies the name of the class to be removed. To remove several classes, use spaces to separate class names. If this parameter is not set, all classes will be removed. |
#Use functions to remove classes: Use functions to remove classes from selected elements.
Syntax: $(selector).removeClass(function(index,oldclass))
##Parameters:
Description | |
Required. Removes the specified class by running the function. | |
Optional. Accepts the index position of the selector. | |
Optional. Accepts the old class value of the selector. |