jQuery - Page Component - Tabbed


/ Published in: jQuery
Save to your folder(s)

jQuery - Page Component - Tabbed


Copy this code and paste it in your HTML
  1. $('.tabbed .panes .pane').hide();
  2. $('.tabbed nav ul li a').on('click', function(e){
  3. $('.tabbed nav ul li a.active').removeClass('active');
  4. $('.tabbed .panes .pane:visible').hide();
  5. $(this.hash).show();
  6. $(this).addClass('active');
  7. e.preventDefault();
  8. }).filter(':first').click();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.