Click to See Complete Forum and Search --> : JavaScript & passing document parameters in IE


MattR
May 5th, 2004, 04:11 PM
I'm trying to get the value out of;

document.form1.selectObject.value (a menu) by "onChange='script(value)' " so that

running script(value) sets var = value, then document.form1.hiddenField.value = var.

This works on every browser with no errors etc except IE...

Testing with alerts indicates that IE isn't picking up the value at the beginning as alert(value) and alert (var) are blank in IE.

What am I doing wrong?

khp
May 5th, 2004, 09:46 PM
Hard to know what you are doing wrong, without knowing exactly what you are doing.

One possible solution or workaound, would be to set unique id's on the form inputs, and then use document.getElementById(id).value to access the values.