element-removeclass
v1.0.1
Published
Tiny zero dependency helper module for removing classes from elements
Downloads
2,359
Maintainers
Readme
element-removeclass
Tiny zero dependency helper module for removing classes from elements
This emulates jQuery's removeClass
behaviour: it works for multiple elements, can take a space delimitted String for multiple classes, and even works in awful browsers.
removeClass(elements, 'class-1 class-2 class-3');
Installation and usage
Grab from NPM
npm install element-removeclass
And import it
import removeClass from 'element-removeclass';
Or grab the minified JavaScript from unpkg
<script src="https://unpkg.com/element-removeclass"></script>