removeClass()
Removes the specified class from the current HTML element or from each element in a result set. This has no effect if the class is not present.
removeClass(classname)
classname
String, space separated list of class names.
Examples
This script removes the class name "foo" from all elements in the results that have this class.
Copy
results.removeClass("foo");
Selector | Matched element | Matched element after script execution |
---|---|---|
p | <p class="foo">Hello world</p> | <p>Hello world</p> |