Skip to content

Instantly share code, notes, and snippets.

@wpflames
Created September 9, 2020 06:49
Show Gist options
  • Select an option

  • Save wpflames/987aba9bac005db31f676e1ec7001026 to your computer and use it in GitHub Desktop.

Select an option

Save wpflames/987aba9bac005db31f676e1ec7001026 to your computer and use it in GitHub Desktop.
JavaScript toggle to add “active” class HTML
<button id=""btn-toggle" onclick="toggle()">Button</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment