Created
March 29, 2016 11:52
-
-
Save iamkarsoft/fc87376d22cef9cf25c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//we could add styles and remove styles existing in a stylesheet | |
tag.classList.add("navbar"); | |
//removing style | |
tag.classList.remove("navbar"); | |
//or we could just toggle | |
tag.classList.togglle("navbar"); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment