Hello, I cant seem to be able to add cookie support to existing working tabs. I'm kind of lost here.
I included jquery, ui.tabs and jquery.cookie.js
This is the code for the working tabs:
- /* Tab Control home main */
- jQuery(function($) {
- var tabContainers = $('div.tabcontrol > div');
- tabContainers.hide().filter(':first').show();
- $('div.tabcontrol ul.tabnavig a').click(function () {
- tabContainers.hide();
- tabContainers.filter(this.hash).fadeIn(100);
- $('div.tabcontrol ul.tabnavig a').removeClass('selected');
- $(this).addClass('selected');
- return false;
- }).filter(':first').click();
- });
Can someone please explain where and how to insert the cookie code?
Thank you.