hi all;
i do have a button in a form.
what i want is to do something like :
if (document.myForm.searchDone.value != "ok"
{
alert("You may not have selected a currency"
;
STOP THE FORM SUBMIT ACTION
}
i thought i could do this :
<INPUT name=apply type=submit value=Update onclick="(here is my test and here i stop the action)">
what could i do ?
i have tryed
<INPUT name=apply type=submit value=Update onclick="if (document.myForm.searchDone.value != "ok"
? alert("You may not have selected a currency"
; return false;">
but i do have to error :"syntax error"
where is the problem ?
Best regards X-),
Elise
i do have a button in a form.
what i want is to do something like :
if (document.myForm.searchDone.value != "ok"
alert("You may not have selected a currency"
STOP THE FORM SUBMIT ACTION
}
i thought i could do this :
<INPUT name=apply type=submit value=Update onclick="(here is my test and here i stop the action)">
what could i do ?
i have tryed
<INPUT name=apply type=submit value=Update onclick="if (document.myForm.searchDone.value != "ok"
but i do have to error :"syntax error"
where is the problem ?
Best regards X-),
Elise