G
Guest
Hi I have a page that pops up a warning box if a selection is not made, see
below.
<script language="javascript" event="onclick" for="btn_submit">
if(document.Form1.drp_dn_arriv.selectedIndex==0)
window.alert("Missing Arrival Time");
Anyhow the btn_submit will post back to the server and reload the page.
Just wondering if anyone knows how to prevent this if the
drp_dn_arriv.selected index = 0? This is a dropdown box and when the index
is 0 it means a selection has not been made. Thanks.
below.
<script language="javascript" event="onclick" for="btn_submit">
if(document.Form1.drp_dn_arriv.selectedIndex==0)
window.alert("Missing Arrival Time");
Anyhow the btn_submit will post back to the server and reload the page.
Just wondering if anyone knows how to prevent this if the
drp_dn_arriv.selected index = 0? This is a dropdown box and when the index
is 0 it means a selection has not been made. Thanks.