There are no tracking or monitoring cookies on this site. There are only cookies used for documentation examples related to cookies.
Close

Processing...
This may take a few seconds.

remove-class

Syntax

remove-class: (class) [every (time)] [after (time)];

time = Time in standard CSS time format, eg. 1s = 1 second, 250ms = 250 milliseconds.

This command removes a class from the target selector if the class is present. No conditional statement is needed from you to check if the class is there to be removed or not, as this is done internally.

The following example will remove the class "turnedOff" from a button when the button is clicked:

#myButton:click {
    remove-class: .turnedOff;
}

remove-class