Simple jQuery Responsive Tabs Interface Plugin - jQueryTab

Simple jQuery Responsive Tabs Interface Plugin - jQueryTab
File Size: 43 KB
Views Total: 34167
Last Update:
Publish Date:
Official Website: Go to website
License: MIT

jQueryTab is yet another jQuery tabs plugin for creating responsive tabbed panels with many options and CSS3 transition animations support.


  • Automatically coverts the tabs into accordion interface in smaller devices like iPad, iPhone, etc...
  • Remembers last active tab using cookie.
  • 2 tabs transitions: normal and fade.
  • 2 accordion transitions: normal and slide.

How to use it:

1. Include jQuery javascript library in the web page.

<script src=""></script> 

2. Include jQueryTab's css and js in the page.

<link rel="stylesheet" href="jQueryTab.css" type="text/css" media="screen" />
<script src="js/jQueryTab.js"></script> 

3. Follow the html structure below to build your tabbed panels.

<ul class="tabs">
<li><a href="#tab1">Tab1</a></li>
<li><a href="#tab2">Tab2</a></li>
<li><a href="#tab3">Tab3</a></li>
<li><a href="#tab4">Tab4</a></li>
<section class="tab_content" id="tab1">
<p> Tabbed Conternt 1</p>
<section class="tab_content" id="tab2">
<p> Tabbed Conternt 2</p>
<section class="tab_content" id="tab3">
<p> Tabbed Conternt 3</p>
<section class="tab_content" id="tab4">
<p> Tabbed Conternt 4</p>

4. Call the plugin with options.

<script type="text/javascript">
responsive:true, // enable accordian on smaller screens
collapsible:true, // allow all accordions to collapse 
useCookie: true, // remember last active tab using cookie
openOnhover: false, // open tab on hover
initialTab: 4, // tab to open initially; start count at 1 not 0

cookieName: 'active-tab', // name of the cookie set to remember last active tab
cookieExpires: 4, // when it expires in days or standard UTC time
cookiePath: '/', // path on which cookie is accessible
cookieDomain:'', // domain of the cookie
cookieSecure: false, // enable secure cookie - requires https connection to transfer

tabClass:'tabs', // class of the tabs
headerClass:'accordion_tabs', // class of the header of accordion on smaller screens
contentClass:'tab_content', // class of container
activeClass:'active', // name of the class used for active tab

tabTransition: 'fade', // transitions to use - normal or fade
tabIntime:500, // time for animation IN (1000 = 1s)
tabOuttime:0, // time for animation OUT (1000 = 1s)

accordionTransition: 'slide', // transitions to use - normal or slide
accordionIntime:500, // time for animation IN (1000 = 1s)
accordionOuttime:400, // time for animation OUT (1000 = 1s)

before: function(){}, // function to call before tab is opened
after: function(){}// function to call after tab is opened


Change logs:

v2.0 (2015-11-21)

  • Update jQueryTab.js

v2.0 (2014-03-20)

  • added version 2 with CSS3 transitions
  • added keyboard navigation and tab postion switching

v1.4 (2014-01-31)

  • Several bug fixes and code optimization

This awesome jQuery plugin is developed by dharmapoudel. For more Advanced Usages, please check the demo page or visit the official website.