Skip to content

Instantly share code, notes, and snippets.

@BahtaDima
Created January 5, 2017 14:08
Show Gist options
  • Save BahtaDima/4698021a80f21608ca37c58cccf10131 to your computer and use it in GitHub Desktop.
Save BahtaDima/4698021a80f21608ca37c58cccf10131 to your computer and use it in GitHub Desktop.
$(".tabs").on("click", "li", function(){
$(".tabs li").removeClass("active"); //удаляем класс во всех вкладках
$(this).addClass("active"); //добавляем класс текущей (нажатой)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment