Skip to content

Instantly share code, notes, and snippets.

@carbone
Created Feb 18, 2021
Embed
What would you like to do?
$(document).ready(function(){
$('ul.tabs li').click(function(){
var tab_id = $(this).attr('data-tab');
$('ul.tabs li').removeClass('current');
$('.tab-content').removeClass('current');
$(this).addClass('current');
$("#"+tab_id).addClass('current');
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment