开发者

Tabs losing focus in IE jquery ui tabs

开发者 https://www.devze.com 2023-01-22 09:45 出处:网络
I have a page with a3 tab layout and each tab contains small forms. For accessibility reasons I am paying close attention to tabbing through the page. When I tab through and hit enter in FF & Chro

I have a page with a 3 tab layout and each tab contains small forms. For accessibility reasons I am paying close attention to tabbing through the page. When I tab through and hit enter in FF & Chrome the focus stays on the tab. In IE 6,7,8 it jumps to 开发者_Go百科the top of the page which causes a big problem for non or low vision users. This same thing occurs on the demo page: http://jqueryui.com/demos/tabs/

I have tried many ways of setting focus with onclick on the element and it just doesn't work.

Any suggestions on how to fix?

Thanks!


Try this:

$( ".selector" ).tabs({selected:2} );

The first tab is 0.

0

精彩评论

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