Hi, I'm pretty new to javascript and was wondering how you would piece
together a variable name and then assign it a value. I want to create a
hidden field and assign it a value based on the value of another variable
Right now it looks like:
("document.all. SM_MARK_10" + dateNumber + ".value")
where dateNumber is an already defined integer. What I want is to say
document.all.SM _MARK_1001.valu e="XX"
document.all.SM _MARK_1002.valu e="X2"
etc.
based on that value of dateNumber. Any way to do this easily?
together a variable name and then assign it a value. I want to create a
hidden field and assign it a value based on the value of another variable
Right now it looks like:
("document.all. SM_MARK_10" + dateNumber + ".value")
where dateNumber is an already defined integer. What I want is to say
document.all.SM _MARK_1001.valu e="XX"
document.all.SM _MARK_1002.valu e="X2"
etc.
based on that value of dateNumber. Any way to do this easily?
Comment