1. Home
  2. Javascript
  3. Class list remove
#javascript#class#list

Use this method to remove one or more classes from the class list. 'remove' method belongs to the 'classList' property.

element.classList.remove('class-name', 'some-other-class');
copy
Full Javascript cheatsheet
Sitemap Git repository