|
Please never use this way to reference an element:document . forms['myform'] . elements['myselect']Please use the standard way:document. getElementById("myselect")The first answer is correct otherwise.if ( document. getElementById("myselect"). selectedIndex < 0 ) { alert( "Please select an option." ); }
__________________
|