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);