Tab Skips Select Form Fields in Mac Firefox. Can I stop this behavior by changing my program?
Tab skips select form fields in Mac Firefox.
http://www.tonyspencer.com/2006/05/02/tab-skips-select-form-fields-in-mac-browsers/
talks about the issue, and shows how to stop it by changing the system preference.
However, I am running some online psych ex开发者_运维百科periment and would like to avoid asking users to change their system preference. So I need some way to stop skipping-behavior in my code.
Is it possible? Any ideas appreciated.
Thanks in advance.
=====edit========
Please note that I cannot use JQuery in my code, but I can use JavaScript.
I solved the issue by myself. What I did was not very optimal, but here is what I did.
- assign tabindex for each element which will have focus.
- when enter key is pressed (tab caused another issue, so I didn't use it), search the element whose tabindex = 1 + currentelement.tabindex, and make it as next element.
- set focus to the next element.
Thanks.
精彩评论