submit form after validation jquery

前端 未结 5 1187
迷失自我
迷失自我 2021-02-08 02:43

I have following form:

  • Name
5条回答
  •  灰色年华
    2021-02-08 03:31

    I do not know anything about your validation plugin, but normally u could use this peace of code

    
    

    You have to make your validation and then return true / false to the submit function of the form. If the plugin does return a bool value, you can try something like this:

    $("form").submit(function() {
       return $(this).validate({ .... });
    });
    

提交回复
热议问题