Solved

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

Posted on 2012-04-03
3
493 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
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

770 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