clas
v0.0.9
Published
dom class manipulation
Downloads
15
Readme
clas
dom class manipulation
clas.get(element);
returns list of classes
clas.has(element, name);
returns true or false if element has provided class
clas.add(element, name);
adds a class to element. returns element
clas.remove(element, name);
removes a class from element. returns element
clas.toggle(element, name);
toggles class on element. returns element