简体   繁体   中英

jquery ui tabs from xml in dialog - focus issue (not active tabs will not take focus from “tab”)

Ok,

posting code will be tricky, but I will try to update tomorrow with an example.

My dialog is dynamic and loaded with dynamic content, including dynamic jquery ui tabs. When I tab through the dialog, the focus stops at the first tab and does not proceed to the next tab. I have tried to set the focus to the next li a I have tried to blur the active tab on keycode.tab , and have added differing tabindex's to the tabs - among other things.

I did pull the tabs out of the dialog, and the tabs focus correctly as I tab through using the keyboard. I'm assuming it's some type of issue with the dialog and then tabs being loaded through json.

using jQuery 1.4.2

using jQuery UI 1.8.14

See this thread: how to set tab focus on li page load using jquery

Could it be that you're trying to set focus to a DOM element that can't receive focus?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM