Skip to content

Instantly share code, notes, and snippets.

@iamkarsoft
Created March 29, 2016 11:52
Show Gist options
  • Save iamkarsoft/fc87376d22cef9cf25c4 to your computer and use it in GitHub Desktop.
Save iamkarsoft/fc87376d22cef9cf25c4 to your computer and use it in GitHub Desktop.
//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