[jQuery] [validate] - JQuery - multiple submit buttons
Hi all,
I'm currently working on a form with JQuery and the validation plugin.
This works great.
I do have 1 little problem, i have 2 submit buttons on there:
"Temporarily save" & "Continue process"
the first button should just submit the form to the server, and NOT
validate anything. The second button should use the fields (like
required etc.) and validate as I normally do.
I do that like this (from the tutorial):
<script type="text/javascript">
$(document).ready(function() {
$("#commentForm").validate();
});
</script>
in the head of the html
and i start my form with:
<form name="form1" method="post" action="xx.php" id="commentForm">
Thank you for helping me out!