1. Home
  2. ›
  3. Javascript
  4. ›
  5. Class list remove

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

#javascript#class#list
element.classList.remove('class-name', 'some-other-class');
copy
Full Javascript cheatsheet