Chrome Extension

Remove class from element jQuery


$("button").click(function() {
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

.removeClass() method in jQuery is used to remove a CSS class from an HTML element using its name. In the code snippet, we are removing a class named hello from the div element.

If there is no class added on the div element it will do nothing. In the second code snippet example, we are removing class by its name from an element which has a class named 'elem' on button click.

Search Index Data (The code snippet can also be found with below search text)

.removeClass() jQuery
Was this helpful?
Join Devsheet Ask a Question