remove-class
v1.0.0
Published
Remove a given class from elements.
Downloads
41
Maintainers
Readme
remove-class
Remove a given class from elements.
Install
$ npm install --save remove-class
Usage
var removeClass = require('remove-class');
var el = document.querySelector('div');
var els = document.querySelectorAll('span');
removeClass(el, 'foo');
removeClass(els, 'bar');
Browser API
removeClass(element, className)
element
Required
Type: HTML DOM element
Element(s) to remove class from.
className
Required
Type: string
Class name to be removed.
Related
License
MIT © Andreas Gillström