faqts : Computers : Programming : Languages : JavaScript : DHTML

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 1 people (0%) answered Yes
Recently 0 of 1 people (0%) answered Yes

Entry

How can i dinamically store a set of inputboxs' names in a variable?

Mar 20th, 2005 19:11
Ginger Black,


I wanna call a set of input boxes from within a specific method.
My method focus's on the next inputBox whenever the user inputs two 
integer values, and again in the other input box it should focus on 
the next one whenever the user inputs other two integer values... and 
so on
But I don't want to use seperate methods for all these inputBoxes 
(just because I have to use the name of the element I want to focus on)
Help me!
And in another method I'm trying to focus on a specific inputBox 
whenever the user presses the TAB key, and again I want to use this 
method for all the inputBoxes I have.
So, is there a way to store these input boxes names in a dinamically 
produced variable and call a specific one among them?