www.sitepoint.com
              
 
            Quick Tip: Add or Remove a CSS Class with Vanilla JavaScript
            1
            
            
          Yaphi Berhanu demonstrates two different methods for adding and removing a CSS class to DOM elements with vanilla JavaScript. No jQuery required! Read full article