开发者

how to submit the form in jquery to server side by escaping or bypassing the Validations that were set

开发者 https://www.devze.com 2023-01-08 18:04 出处:网络
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:

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>.

0

精彩评论

暂无评论...
验证码 换一张
取 消