Skip to content

A trio of functions to manipulate a DOM element's class attribute.

Notifications You must be signed in to change notification settings

jaycliff/classhole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

classhole

Classhole is a trio of (low-garbage) functions to manipulate a DOM element's class attribute. The function names are pretty self-explanatory.

hasClass

hasClass(element, class_name);

addClass

addClass(element, class_name);

removeClass

removeClass(element, class_name);

About

A trio of functions to manipulate a DOM element's class attribute.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published