Randy Webb wrote:
Boki said the following on 5/3/2006 1:23 AM:
Hi All,
// code start
alert("document.all.txtbox"+valueA+".value")
// end code
could you please advice,
can it show the value of txtbox ?
IE only code or cross-browser?
document.forms['formID'].elements['txtbox'+valueA].value;
Aside from the fact that the OP's code wouldn't give the desired result
anyways. Assume valueA = '1'. The alert would read, literally:
document.all.txtbox1.value
....not the value of the element. It's in quotes.