Jquuery Tabs Cookiess

Posted by user342391 on Stack Overflow See other posts from Stack Overflow or by user342391
Published on 2010-06-08T15:50:14Z Indexed on 2010/06/08 15:52 UTC
Read the original article Hit count: 285

Filed under:
|
|
|

I am trying to use the Jquery cookie plugin to remember the last selected tab.

I can't seem to get it to work.Do i need anything else apart from the jquery lib and cookie plugin???

This is the code:

  <script type="text/javascript">
    $(document).ready(function() {
       $("#tabletabscampaigns > ul").tabs({ remote: true, cache: true });
$("#tabletabscampaigns").tabs({selected: 0, cookie: { expires: 30}  }); 
    });       
</script>

<div id="tabletabscampaigns" style="float:left; width:895px; margin-top:20px;">

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about plugin