Search code examples
jquery-steps

Jquery-steps : Preserve last selected tab after postback


I am using Jquery-Steps to produce a Tabs effect on one of my aspx pages. Each tab has a Save button, which calls a server method to save values to db. However, on page reload, it by default selects the first tab. I am calling dvProfile.steps() method. This is how my tags are :

<div id="dvProfile">
<h1>Tab1</h1>
<div id="tab1">

</div>
<div id="tab2">
</div>

..... so on

</div>

I want to programmatically select the last selected tab. Thanks for the help in advance!

Sri


Solution

  • For future reference, Theres is property called 'saveState' , which when set to true saves the state(last selected tab) to a cookie.