Hi,
I have three input text fields all with an inital value of 0. to store the text fields in an array and assign the value of 0 to each index with the code below, but, have hit a snag, please assist.
//set initial values for quantity text fields
function setVal() {
var qty_ar = [qty1_txt.text, qty2_txt.text, qty3_txt.text];
for (name in qty_ar) {
var qtyValue_txt = this[qty_ar[name]];
qtyValue_txt.text = 0;
}
}
setVal();