Hi Isaac, Use the .show() event to set the cookie with the index of the tab you're about to show. Then upon page-refresh, or at the next visit prior to cookie expiry, you can present that tab first.
**--** Steve On Oct 22, 4:08 pm, Isaac Earl <isaacke...@gmail.com> wrote: > So I understand how to make a default tab using the selector. > $tabs.tabs('option', 'selected', 2); > > I also understand how to use the cookie plugin > > $('#tabs').tabs({ cookie: { expires: 30 } }); > > but I can't figure out how to combine the two! What I really want is > to be able to load tab 2 as the default tab. But if someone changes > the tab and then refreshes I don't want it to go back to the 2nd tab, > I want it to stay on the one they've navigated to. Any help would be > appreciated. > > Thanks, > Isaac Earl --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery-ui@googlegroups.com To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---