Could javascript be changed so that single occurances of a form element be refrenced as element[0] rather than forcing us to test for multiple occurances? I don’t think this would break legacy code and only cost a little bit of client side memory.
Here is an example of the kind of code that results from the lack of this feature:
if ( document.act_form.chg.length == null ) {
document.act_form.chg.value = ‘*’
} else {
document.act_form.chg[0].value = ’27’
}
On the otherhand perhaps there is a simple solution that i’m missing. This is particularly useful to those of use who generate input elements as a function of db queries in tools like coldfusion and php.