jquery tabs postback problem

前端 未结 4 923
囚心锁ツ
囚心锁ツ 2021-02-14 17:42

i am using jquery library in my project.I have terrible problem with jquery tabs.Solutions is that when i was in third tab,i post back my form,tabs reloaded and goes to first t

4条回答
  •  执念已碎
    2021-02-14 18:22

    tabs can use cookies to store the current tab. Have a look at the tabs documentation. Down in the Options list there is an example of how to use cookies to store the current tab:

    $('.selector').tabs({ cookie: { expires: 30 } });
    

    This requires the jquery cookies plugin to be included though.

提交回复
热议问题