Skip to content

Instantly share code, notes, and snippets.

@johnnny-bravoo
Created April 7, 2020 09:22
Show Gist options
  • Save johnnny-bravoo/661813d8e1fc0307f10b65de97ef8a42 to your computer and use it in GitHub Desktop.
Save johnnny-bravoo/661813d8e1fc0307f10b65de97ef8a42 to your computer and use it in GitHub Desktop.
BS4 - Tabs
jQuery(".tab-pane").addClass("active").addClass("show");
jQuery(".nav-tabs .nav-link").on("click", function() {
console.log(this.hash);
jQuery(".tab-pane").not(this.hash).removeClass("active").removeClass("show");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment