No-Library (pure JS), HTML, CSS, JavaScript
Change class name on click in jQuery
jQuery Compat (edge), HTML, CSS, JavaScript