1. Home
  2. Javascript
  3. 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
NordVPN NordVPN