Can I keep on same jQuery tab on page refresh or when I have navigated away from the page?

前端 未结 3 1404
情话喂你
情话喂你 2020-12-07 00:00

I have a basic jQuery tabs system going:

$(document).ready(function(){
  $(\'#tabs div.jdiv\').hide();
  $(\'#tabs div.jdiv:first\').fadeIn(\"slow\");
  $(\'         


        
3条回答
  •  误落风尘
    2020-12-07 00:25

    To preserve the current tab open after the page is refreshed only solution coming in my mind is using cookies, I think it's the only one.

    If you use a link in the web page, on the other hand, to refresh the page you could add an anchor to it with the tab opened at the time.

提交回复
热议问题