Hi,
I'm using jQuery tabs, and trying to save the positions of the Tabs (and of course the content in the tabs). Could you please suggest me a way to do the same?
Regards
Hi,
I'm using jQuery tabs, and trying to save the positions of the Tabs (and of course the content in the tabs). Could you please suggest me a way to do the same?
Regards
You can set which tab is active by using the selected property
$('.selector').tabs({ selected: 3 });
You'll also need a way of storing which tab is active. For that we have the select event, you can listen for the select event, and then on the callback either send an Ajax call back to the server with the information (which tab is active), or create a cookie where you store the same information.
Then when the page loads you just need to either get that information from the server or the cookie, and use the select property to set the active tab.
the order is defined by the element position in html, not the tabs plugin, not jquery, not javascript.