jQuery 1.9 and UI 1.10 tabs with cookies

Seems like jQuery UI got rid of maintaining state with the latest implementation.

Before, it pretty simple to keep state across page loads with jQuery tabs. This is one possible way to do it with the new code.  Its still pretty easy, just a little different.

    activate: function (e, ui) { 
        $.cookie('selected-tab', ui.newTab.index(), { path: '/' }); 
    active: $.cookie('selected-tab')             

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.