Here is a snippet of my form
<form action="" method="post" onsubmit="return verify()">
<input type="submit" name="submit" value="Delete" />
<input type="submit" name="submit" value="Save" />
</form>
As you can see I am verifying with a function called verify()
. I only want to verify if they click "save", I do not want to verify for "delete".
How can I do this? Is there a way I can tell which one they clicked inside the funciton and just return true
if they clicked "delete"?