Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. function tabs (tabsclass, tabsitem) {
  2. $(tabsclass).click(function() {
  3. $(tabsclass).removeClass("active").eq($(this).index()).addClass("active");
  4. $(tabsitem).hide().eq($(this).index()).fadeIn()
  5. }).eq(0).addClass("active");
  6. };
  7. tabs ("tabsclass", "tabsitem");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement