SHARE
TWEET

Jquery-Exam

DonJabone Jun 9th, 2014 188 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.fn.tabs = function () {
  2.     $('#tabs-container').addClass('tabs-container');
  3.     var tabItems = $('.tab-item');
  4.     tabItems.on('click', function () {
  5.         tabItems.removeClass('current');
  6.         $(this).addClass('current');
  7.         $('.tab-item-content').css('display', 'none');
  8.     $('.current').find('.tab-item-content').css('display', 'block');
  9.     })
  10.     $('.tab-item-content').css('display', 'none');
  11.     tabItems.first().addClass('current');
  12.     $('.current').find('.tab-item-content').css('display', 'block');
  13. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top