How do I not trigger validation of the following form once using
javascript: form.action
I have 2 Submit buttons first one must use sellitem1.php
as action and not use JQuery VALIDATION but 2nd one must VALIDATE form and use action listed in the Form Action: upload.php
.
2nd Button is working well :)
<form method="post" name="UploadForm" id="UploadForm"
action="upload.php" enctype="multipart/form-data" >
<input type="text" class="button_date" name="price" id="price"
value="" size="15" />
<input class="button2" style="border-right:none; font-size:13px;"
name="Back" id="Back" type="submit" value="Back" onclick="javascript:
form.action='sellitem1.php';"/>
<input class="button2" style="border-right:none; font-size:13px;"
name="List Item" id="submit" type="submit" value="List Item"
onClick="removeFocus()"/> </form>
<script>
$( "#UploadForm" ).validate({
errorLabelContainer: "#messageBox", wrapper: "td",
rules: { price: {
required: true,
number: true,
range: [1.00, 500000.00]
} } }); </script>