Jquery Tool: Keep selected tab on refresh or save data

后端 未结 3 1406
南笙
南笙 2021-02-06 02:22

I am using jquery tool for tab Ui,

Now I want to keep tab selected on page reload. Is there any way to do that? below is my code

$(function() {
    // se         


        
3条回答
  •  天涯浪人
    2021-02-06 02:55

    The easiest way to survive between page refresh is to store the selected tab id in session or through any server-side script.

    Only methods to store data on client side are: Cookies or localStorage.

    Refer to thread: Store Javascript variable client side

提交回复
热议问题