I am trying to display the value of a select box.
My javascript is as below:
...
alert(formobj.elements[2].value)
...
This works with IE. It displays "2000". With Netscape it displays "NULL".
I have also tried...
alert(document.formName.FieldName.value)
I am trying to make this cross browser compatible. Does anyone have any suggestions?? Any help is appreciated. [sig][/sig]
My javascript is as below:
...
alert(formobj.elements[2].value)
...
This works with IE. It displays "2000". With Netscape it displays "NULL".
I have also tried...
alert(document.formName.FieldName.value)
I am trying to make this cross browser compatible. Does anyone have any suggestions?? Any help is appreciated. [sig][/sig]