I have this
------------------------------------------
<form name = "Myform">
<select name = "S[1]">
<option value="1">orange
<option value="2">red
</select>
</form>
---------------------------------------
I am using the S[1] because I am passing it off to a PHP script than handles all the "S" selects as an array
---------------------------------------
how can I use javascript to check to value of the select
<Script= "JavaScript">
alert(document.Myform.S[1].value)
</script>
doesn't work
"document.Myform.S.1 is not an object"




Reply With Quote