Chrome Extension

Remove class from element jQuery


$("button").click(function() {

Do you know, you can create and search your own code snippets on Devsheet. Store your code on cloud using devsheet and search using its chrome extension. Is it look cool?

.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?
Never leave your website again in search of code snippets by installing our chrome extension.