No-Library (pure JS), HTML, CSS, JavaScript
Change class name on click in jQuery
Using es6 class keyword
Using Constructor function and new keyword
Using Constructor function
Using Factory style
jQuery 1.9.1, HTML, CSS, JavaScript