Preventing a form from submitting in jQuery Validate plugin's submitHandler function

后端 未结 8 1632
花落未央
花落未央 2020-12-08 07:24

I am using jQuery with the validate plugin at http://docs.jquery.com/Plugins/Validation/validate

I want to prevent the form from submitting after its validation and

相关标签:
8条回答
  • 2020-12-08 08:10

    You can code this in a very simple way via "jQuery Walidate". http://jquery.dop-trois.org/walidate/

    There you can code a function, that will be executed on submit. Look for Callback in the Documentation.

    0 讨论(0)
  • 2020-12-08 08:12

    Maybe you can validate externally without using a submit button:

    if($("#myform").valid()){
        alert("Do some stuff...");
    }
    
    0 讨论(0)
提交回复
热议问题