Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tabs (tabsclass, tabsitem) {
- $(tabsclass).click(function() {
- $(tabsclass).removeClass("active").eq($(this).index()).addClass("active");
- $(tabsitem).hide().eq($(this).index()).fadeIn()
- }).eq(0).addClass("active");
- };
- tabs ("tabsclass", "tabsitem");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement