No-Library (pure JS), HTML, CSS, JavaScript
Toggle class name on click in jQuery
Implementing using prefix and hash table