开发者

Passing selected option in URl to Jquery UI tabs

开发者 https://www.devze.com 2022-12-10 07:37 出处:网络
Is there a way that i can link to a page containing a jquery ui tab set and pass the selected variable in the url link to automatically show a particular tab开发者_运维问答 depending in which link was

Is there a way that i can link to a page containing a jquery ui tab set and pass the selected variable in the url link to automatically show a particular tab开发者_运维问答 depending in which link was clicked to reach the page?


Yes, you can do this by constructing the url like so http://jqueryui.com/demos/tabs/#tabs-2

Essentially you are passing the id of the tab's content div after the hash. It worked on Chrome, but it should probably work everywhere.

0

精彩评论

暂无评论...
验证码 换一张
取 消