Solved

How to AutoTab to Next Text Box When Specific Length of Data is Entered

Posted on 2012-04-03
3
494 Views
Last Modified: 2012-04-03
I am new to web developing, and I am writing a new ASP .NET page that will require 3 text boxes to be able to auto tab to the next box after a specific amount of characters are entered. For instance, take a phone number. If a user were to enter "123" and then "456" and then "8910", how would one go about having the next text box automatically tabbed to without the need of the user to do it? (I need to know how to complete this on both an ASP .NET page, using JavaScript, and using the code behind. Any help would be greatly appreciated.)
0
Comment
Question by:thenthorn1010
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Expert Comment

by:Pra4444
ID: 37802020
Here is a simple example that does what you are looking for.

http://geekswithblogs.net/PartialMethod/archive/2009/01/26/auto-tab-with-jquery.aspx

Thanks.
0
 

Author Comment

by:thenthorn1010
ID: 37802406
Pra4444,

Thanks for the quick reply. I did look over the example, but is there a way to use JavaScript by itself in order to accomplish this? I have a request to complete this without adding JQuery to a site that I am building.

Thanks.

thenthorn1010
0
 
LVL 12

Accepted Solution

by:
Pra4444 earned 500 total points
ID: 37802698
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question