P
Paul E. Schoen
Sorry if this is a known problem with IE, but I was surprised to find that
the following code snippet works OK in Firefox but not in IE6:
else if (Form1.DogSex.value == "?") {
alert ("Please select Dog Sex");
Form1.DogSex.focus(); }
The control is defined in a table as follows:
<TR><TD>Sex of dog: </TD><TD> <SELECT NAME="DogSex">
<OPTION>?</Option> <OPTION>Male</Option> <OPTION>Female</Option> </TD></TR>
In Firefox the default "?" is recognized and the alert is displayed. In IE6
it is not. Maybe there is a better way to detect that a viable option was
not selected? My complete web page is at:
http://www.smart.net/~pstech/DogLicenseJS.htm
I had posted my initial newbie questions on the Microsoft Jscript NG, but
my questions are probably applicable to JScript and JavaScript. I really
don't know how to tell the difference.
Thanks,
Paul
the following code snippet works OK in Firefox but not in IE6:
else if (Form1.DogSex.value == "?") {
alert ("Please select Dog Sex");
Form1.DogSex.focus(); }
The control is defined in a table as follows:
<TR><TD>Sex of dog: </TD><TD> <SELECT NAME="DogSex">
<OPTION>?</Option> <OPTION>Male</Option> <OPTION>Female</Option> </TD></TR>
In Firefox the default "?" is recognized and the alert is displayed. In IE6
it is not. Maybe there is a better way to detect that a viable option was
not selected? My complete web page is at:
http://www.smart.net/~pstech/DogLicenseJS.htm
I had posted my initial newbie questions on the Microsoft Jscript NG, but
my questions are probably applicable to JScript and JavaScript. I really
don't know how to tell the difference.
Thanks,
Paul