Hi,
I have three text fields all with an inital value of 0, tried 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();