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 8059181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:35:26+00:00 2026-06-05T09:35:26+00:00

$(#textbox).one(click, function () { }); How would I add support for the tab key?

  • 0
$("#textbox").one("click", function () {

});

How would I add support for the tab key? If the user on the previous textbox and then clicks the tab key and ends up on #textbox, that’s when the function should be ran, as well as when the user decides to click instead of using the tab key.

  • 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-05T09:35:27+00:00Added an answer on June 5, 2026 at 9:35 am

    You can bind to the focus event instead of the click event:

    $("#textbox").one("focus", function () {
        //Do stuff
    });
    

    From MDN:

    The focus event is used to respond when the focus is given to an
    element.

    and

    The user can change the focus by clicking an element with the mouse or
    by pressing the TAB key. When the TAB key is pressed, the next element
    is given the focus. To step backwards, the Shift key and Tab key can
    be pressed.

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

Sidebar

Related Questions

I want to add textbox in treeview as child of one of the parent
I have one modelpopup extender, in that one textbox and two asp.net buttons(save,exit), textbox
In my code I have one textbox and one button. Whatever place you type
i want to create one textbox which accept city or country name and when
I know how to check if one textbox is changed, but what about if
I am using Textbox_Validating event to validate a textbox on one of my window
This is my problem, I have one textbox, one button and one label. Everything
I created a silverlight app (without website) named TestApp , with one TextBox: <UserControl
I have two div's one has textbox in it and other just plain text.
I want to set the width of one particular textbox in my view. No

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.