I've got a code like this:
<script language="javascript">
function check(){
if (criteria){
alert ('Please make a valid selection.')}
}
</script>
<form action=mypage.asp onsubmit=check()>
....................
</form>
Now if the criteria is fulfilled, the alert box comes out. After the user press on the button on the alert box, the form will continue to submit. How can I keep stop the form from submitting and bring the user back to select again? Thanks! [sig][/sig]
<script language="javascript">
function check(){
if (criteria){
alert ('Please make a valid selection.')}
}
</script>
<form action=mypage.asp onsubmit=check()>
....................
</form>
Now if the criteria is fulfilled, the alert box comes out. After the user press on the button on the alert box, the form will continue to submit. How can I keep stop the form from submitting and bring the user back to select again? Thanks! [sig][/sig]