Skip to content

Instantly share code, notes, and snippets.

@yevhenii-horbenko
Created August 25, 2016 00:57
Show Gist options
  • Save yevhenii-horbenko/d0ebbc715367e1d67c77b4c082caa8e9 to your computer and use it in GitHub Desktop.
Save yevhenii-horbenko/d0ebbc715367e1d67c77b4c082caa8e9 to your computer and use it in GitHub Desktop.
Меню с назначением класса active
$(".tabs-menu").on("click", ".tab", function(){
$(".tabs-menu .tab").removeClass("menu-active"); //удаляем класс во всех вкладках
$(this).addClass("menu-active"); //добавляем класс текущей (нажатой)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment