Now, there are 3 tabs: by name, date and industry. When a user picks a project from the 'industry' tab, I want it to stay open when he gets on that page. So I thought, this calls for that Cookie plugin.
I tried a lot of different things, but can't get it to work..
This is my code for the UI Tabs plugin:
- $(document).ready(function(){
- $(function () {
- var tabContainers = $('div.sc_menu_wrapper > div');
-
- $('a.tab').click(function () {
- tabContainers.hide().filter(this.hash).show();
-
- $('a.tab').removeClass('selected');
- $(this).addClass('selected');
-
- return false;
- }).filter(':first').click();
- });});
So, what should I do with the Cookie plugin for it to remember the last tab?
Thank you in advance!