开发者

How to submit form by ignoring form validation recursive on call form.submit() method?

开发者 https://www.devze.com 2023-02-14 01:56 出处:网络
I have one form and i have bondedform validation using Jquery form validation by below code. I have used A jQuery inline form validation from

I have one form and i have bonded form validation using Jquery form validation by below code. I have used A jQuery inline form validation from

$("#FormID").validationEngine({
    onValidationComplete: function(form, status){
        if(status==true)
        {
            form.submit();
        }
    }开发者_JAVA技巧
});

As per above code form validation works properly when clicks on submit button but. If form is validated then fire submit() event and try to validate again.. in recursively then i got alert of "Stake Overflow error on line(..)" in ie.

How can i handle it?


I got solution for this.... i have modified some code as mentioned below

$("#FormID").validationEngine({
    onValidationComplete: false
});
0

精彩评论

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