JavaScript

Moderators: None (Apply to moderate this forum)
Number of threads: 2058
Number of posts: 5158

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Using javascript to jump from one field to another? Posted by Phalaenopsis on 17 Jan 2005 at 7:18 PM
Ok, I have 3 fields to enter SSN. there firs is to get the first 3 numbers say 333, the secon field gets the next 2 and the final gets that last 4 numbers of the social securty number. How can I make it so that once the user has entered the first 3 numbers the cursor automatically jumbs to the second field and then to the final third?

Can this be done at all? I am looking without success...
Report
Re: Using javascript to jump from one field to another? Posted by Souldrinker on 18 Jan 2005 at 12:38 AM
: Ok, I have 3 fields to enter SSN. there firs is to get the first 3 numbers say 333, the secon field gets the next 2 and the final gets that last 4 numbers of the social securty number. How can I make it so that once the user has entered the first 3 numbers the cursor automatically jumbs to the second field and then to the final third?
:
: Can this be done at all? I am looking without success...
:

Long time, since I wrote a javascript, but this is surely possible. To solve your problem, I suggest you to look at the following javascript script elements: EVENT "OnKeyPress" for catching the keyPress Event within the textbox, FUNCTIONS "String" for determinating the length of the values of the input fields and the function focus(), with which you can set the focus upon an element in your html form.
best regards,

sebastian mohrenstecher
executive secretary
net::allies

www.net-allies.de
info@net-allies.de

Report
Re: Using javascript to jump from one field to another? Posted by pat.dubock on 14 Mar 2005 at 7:08 AM
: : Ok, I have 3 fields to enter SSN. there firs is to get the first 3 numbers say 333, the secon field gets the next 2 and the final gets that last 4 numbers of the social securty number. How can I make it so that once the user has entered the first 3 numbers the cursor automatically jumbs to the second field and then to the final third?
: :
: : Can this be done at all? I am looking without success...
: :
:
: Long time, since I wrote a javascript, but this is surely possible. To solve your problem, I suggest you to look at the following javascript script elements: EVENT "OnKeyPress" for catching the keyPress Event within the textbox, FUNCTIONS "String" for determinating the length of the values of the input fields and the function focus(), with which you can set the focus upon an element in your html form.
: best regards,
:
: sebastian mohrenstecher
: executive secretary
: net::allies
:
: www.net-allies.de
: info@net-allies.de
:
:

Report
Re: Using javascript to jump from one field to another? Posted by pat.dubock on 14 Mar 2005 at 7:08 AM
: : Ok, I have 3 fields to enter SSN. there firs is to get the first 3 numbers say 333, the secon field gets the next 2 and the final gets that last 4 numbers of the social securty number. How can I make it so that once the user has entered the first 3 numbers the cursor automatically jumbs to the second field and then to the final third?
: :
: : Can this be done at all? I am looking without success...
: :
:
: Long time, since I wrote a javascript, but this is surely possible. To solve your problem, I suggest you to look at the following javascript script elements: EVENT "OnKeyPress" for catching the keyPress Event within the textbox, FUNCTIONS "String" for determinating the length of the values of the input fields and the function focus(), with which you can set the focus upon an element in your html form.
: best regards,
:
: sebastian mohrenstecher
: executive secretary
: net::allies
:
: www.net-allies.de
: info@net-allies.de
:
:




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.