A simple tab plug, that will hold state when a user leaves the page/site
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


jQuery Tabbify Plugin

Tabbify extended simpletabs, it added the memory of the last tab. So if a user refreshes the window, moves away from the page, etc. it'll remember the last chosen tab.

You'll need

jQuery Cookie by Klaus Hartl/klaus.hartl@stilbuero.de

How to use

Obviously include the three libraries (jquery, cookie, tabify) then you can use it as so. Please name your overall id something different if you have more than one tabbed region per sites, as the div id will be the name of the cookie set to remember your last clicked tab


<div id="product_tabs">
        <li><a href="#foo"><span>One</span></a></li>
        <li><a href="#bar"><span>Two</span></a></li>
        <li><a href="#wah"><span>Three</span></a></li>
	<div id="foo">
	  First tab is active by default, its also known as the foo tab
	<div id="bar">
		This is the bar tab
	<div id="wah">
		This is the wah tab


Credit must go out to ANDREAS LAGERKVIST I've forked the original code.

and the creators of jquery.. FTW

And i guess i'll give myself a little bit of credit, after spending nearly a full day messing around with tab plugins, none did what i wanted, so i modified one! open source rocks.