buckbeak
09-27-2002, 08:20 AM
I have 2 buttons which when submit form if will perform different js function (validation).
function check(){
if save button is clicked {if (form.name.value == '') {
alert("This field cannot be blank");}
}
<form onSubmit="return check()">
2 buttons - save and delete
</form>
function check(){
if save button is clicked {if (form.name.value == '') {
alert("This field cannot be blank");}
}
<form onSubmit="return check()">
2 buttons - save and delete
</form>