Remember which tab was active after refresh

前端 未结 17 2186
眼角桃花
眼角桃花 2020-11-27 04:43

I\'m using jquery tabs on a web page and when the page is refreshed it loses what ever tab I had been on and goes back to the first tab.

Has anyone come across this

17条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 05:00

    You can use the jQuery History plugin, here is a demo (load another link in the demo and try refreshing)

提交回复
热议问题