View Single Post

Old 06-15-2007, 12:48 AM   #2 (permalink)
jokeyxero
Junior Member
 
Join Date: Jun 2007
Posts: 1
Rep Power: 0 jokeyxero is on a distinguished road
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." ); }
__________________
jokeyxero is offline   Reply With Quote