how to submit the form in jquery to server side by escaping or bypassing the Validations that were set
how to submit the form in jquery to server side by escaping or bypassin开发者_运维知识库g the Validations that were set
You can just call the DOM (not jQuery) form.submit()
method, like this:
$("form")[0].submit();
Or if it's by ID:
document.getElementById('myForm').submit();
//or
$("#myForm").get(0).submit();
This bypasses the jQuery event handlers and prevents them from running, instead it directly submits the <form>
.
精彩评论