Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting all boxes to zero...???

Status
Not open for further replies.

Albuckj2

Programmer
Jan 7, 2003
68
GB
I need to set a large number of input boxes to zero. The names of these input boxes are in the array "mins[]".
I am trying to use the following statement but it does not work.

parent.customFullMain.fullM.+ mins[f] +.value = "";

I am sure that the parent.customFullMain.fullM is correct, I just need to get the input name in there. The reset() function is
no good to me as the values are initially non-zero.

Cheers for any help,

Alex.
 
try looping through them while using the eval() function to point to the object
eval(parent.customFullMain.fullM.+ mins[f] +.value = ""); _________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top