Safari defaults to only visit form elements when using the tab key for navigation. When using custom form elements, such as the jQuery UI Selectmenu, these elements are igonered when navigating through the form fields. How can I include custom form elements in navigation using the tab key without changing the default setting?
Safari defaults to only visit form elements when using the tab key for navigation.
Share
Have an
inputelement right before the jQuery Selectmenu, and add an event handler to it so once it gets focus, it sets focus to the jQuery Selectmenu. Then use this CSS to hide the input box you added:position: absolute; top: -9999px; left: -9999px;Edit: To prevent being focused again after shift + tab you can do something like this.