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

  • SEARCH
  • Home
  • 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 8049945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:55:43+00:00 2026-06-05T06:55:43+00:00

I am building a web interface built around jQuery tabs, where the first tab

  • 0

I am building a web interface built around jQuery tabs, where the first tab contains a text input that can be used as a quick search through the other tabs. I want the textbox to gain focus as soon as the first tab is selected, so the user can start typing asap.

Currently I’m trying to use the tabsselect event to bind the focus-stealing function, however it seems that I’m missing something.

my current code:

$("#usertabs").tabs().bind("tabsselect",function( event, ui){
    if(ui.index == 0){
        alert('fire');
        $('#barcodeselect').focus();
    }
});

When I click the first tab, the alert pops up, and as soon as I dismiss it, the first tab is shown, however the textbox does not have focus.

Calling $('#barcodeselect').focus(); from a console does have the desired effect, so it shouldn’t be a typo or something like that..

Could it be that the changing of tab steals focus from the textbox? If so, is there a way to bind on the tab change being finished instead of beginning? Or am I just being oblivious?

  • 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-06-05T06:55:44+00:00Added an answer on June 5, 2026 at 6:55 am

    You should use tabsshow instead of tabsselect.

    Tab select happens when the tab is clicked (so that you can cancel the tab change returning false).

    Tab show happens when the tab has been finally selected and is displayed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi all im building a web user interface. In this interface i use popup
I am building ASP.NET MVC3/Razor C# and I need two sides/interface base web aplication,
I'm going to start a new project that's building web apps from scratch. I
We're building a web application that is secured using Forms Authentication. On a certain
It seems to me that Rails shines when building web-centric applications such as the
How easy it's to come up with a drag and drop web-based interface that'll
HI guys I'm building a web mail client interface and would like an autosuggest
I built a web service A which use Solr as its text search engine.
I am building an application that has a web front end and a desktop
I'm building a web interface for a XML-database using Sinatra and I need some

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.