Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery tab and tab content show up when clicked ?
- $("ul.tabs li a").click(function() {
- $("ul.tabs li > a").removeClass("active");
- $(this).addClass("active");
- $("#wrap > div").hide();
- var activeTab = $(this).attr("href");
- $(activeTab).show();
- return false;
- });
- $("ul.tabs li a").click(function() {
- $(".active").removeClass("active");
- $(this).addClass("active");
- $("#wrap > div").hide();
- $(".active-tab").removeClass();
- $(this).parent().addClass("active-tab");
- var activeTab = $(this).attr("href");
- $(activeTab).show();
- return false;
- });
- $(this).addClass("active");
- <a href="#something"><li></li></a>
Add Comment
Please, Sign In to add comment