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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:31:21+00:00 2026-05-11T14:31:21+00:00

I have three input boxes for entering a telephone number on a webpage: XXX

  • 0

I have three input boxes for entering a telephone number on a webpage:

 XXX XXX XXXX 

I need JavaScript that moves the user between the boxes as you type. After the third character, it moves you to the second box, etc…

In the past, I’ve had trouble with the backspace. When I clicked backspace from the second box, it puts me in the first, but then shoots me back to the second.

What is the best way to do this?

  • 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. 2026-05-11T14:31:22+00:00Added an answer on May 11, 2026 at 2:31 pm

    You should use jQuery AutoTab

    Example code like this

     <div><strong>Phone Number:</strong></div>  <input type='text' name='area_code' id='area_code' maxlength='3' size='3' /> -  <input type='text' name='number1' id='number1' maxlength='3' size='3' /> -  <input type='text' name='number2' id='number2' maxlength='4' size='5' />    <script type='text/javascript'>  $(document).ready(function() {  $('#area_code').autotab({ target: 'number1', format: 'numeric' });  $('#number1').autotab({ target: 'number2', format: 'numeric', previous: 'area_code'     });  $('#number2').autotab({ previous: 'number1', format: 'numeric' }); }); </script> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok so i have a form that has three input boxes, at the moment
I have three text input boxes that run the same PHP script. The PHP
I have three input text boxes in my form. First one is teacher, second
I have a large table with input boxes. Three columns of these are dates/times
I have 6 input boxes - each for 4 digits. After entering 4 digits,
I have a webpage run on php with a few tables, input boxes, and
I have three textboxes in my control,for hour, minute and second. User can input
Please see this fiddle , where I have a button and three input boxes
Here's a Fiddle for what I'm about to discuss. I have three input boxes
I have two three text boxes. <input type=text name=test value=100 /> <input type=text name=test

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.