开发者

Jquery UI Tabs remembers the position of current tab? Is there a way to disable this?

开发者 https://www.devze.com 2022-12-29 21:29 出处:网络
JQuery UI Tabs remembers the current selected tab when we navigate from the current page and come back to the previous 开发者_Go百科one (use anchor links for such page transfer) Is there any way I cou

JQuery UI Tabs remembers the current selected tab when we navigate from the current page and come back to the previous 开发者_Go百科one (use anchor links for such page transfer) Is there any way I could disable the feature that makes the tabs to remember their current position? I checked the JQueryUI documentation for tabs but could not find where it sets the cookie to accomplish this. Any insight would be helpful.

Thanks in advance.


The default tabs() implementation certainly doesn't do it. But are you sure the cookie option is null? Otherwise it might be the selected option. The documentation mentions:

Cookie:

Store the latest selected tab in a cookie. The cookie is then used to determine the initially selected tab if the selected option is not defined

Selected:

Zero-based index of the tab to be selected on initialization. To set all tabs to unselected pass -1 as value.

0

精彩评论

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