Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7577081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:05:40+00:00 2026-05-30T17:05:40+00:00

Safari defaults to only visit form elements when using the tab key for navigation.

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:05:41+00:00Added an answer on May 30, 2026 at 5:05 pm

    Have an input element 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;

    $('input.hiddenInput').focus(function(){
       var cameFrom = $('#myForm').data('lastIn');
    
       //check whether it came from the jQuery select menu
       if(cameFrom != 'jquery-ui-element'){
           $('jquery-ui-element').focus();
       } else {
           //focus previous sibling
           var inp = $('input');
           var index = inp.index(this);
           var prev = inp[index-1];
           prev.focus();
       }
    });
    

    Edit: To prevent being focused again after shift + tab you can do something like this.

    $('#myForm input').focusout(function () {
       $('#myForm').data('lastIn', $(this).attr('name'));
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to prevent default anchor behavior in Safari using the jQuery library.
Long story short: on Chrome and Safari only, values from a login form are
jQuery Mobile Docs says if we wrap form element in div containing data-role=fieldcontain proper
Hi I'm using the next css code to style scroll bars in Safari and
I am making cross-domain Ajax calls using the latest version of jQuery 1.7.1. with
I am using a custom cursor for my project. The custom cursor works perfectly
Up until recently, I had been using Safari 4 for testing and debugging my
I have a jQuery UI Button that I am trying to style using CSS.
When I have only one modal dialog It works in Safari too. In this
what are the javascript defaults for safari on iphone or ipad? I mean does

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.