how to keep tabs menu back to default state
Greetings friends, I am new to using jQuery and I have a doubt. I've been testing the code of the menu tabs ( http://jqueryui.com/tabs/ ) on my website and I've noticed how much , that if I select the tab page 3 and charge , does not stay in this tab if not default back to the first so my question is how can I avoid this behavior ?, ie if I select any of the tabs and for some reason I refresh the page , the selected Remain tab. according to me , may be with these code but I am not sure how to implement them :
- // getter
- var active = $ (" .Selector " ) .tabs ( "option" , "active ");
- // setter
- $ (" .Selector " ) .tabs ( "Option" , "active ", 1) ;