开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜