class-stuff
v1.1.0
Published
A javascript module with: addClass, removeClass and hasClass methods
Downloads
9
Maintainers
Readme
class-stuff
A javascript module with: addClass, removeClass and hasClass methods
var classStuff = require('class-stuff');
var alertField = document.getElementById('alert-field');
classStuff.removeClass(alertField, 'alert-danger');
classStuff.addClass(alertField, 'alert-success' );
classStuff.hasClass(alertField, '.alert-info' ); // false