jQuery form submit

后端 未结 4 1997
终归单人心
终归单人心 2020-12-15 08:49

My goal is: When for is submitted:

  • a validation on form is made : OK
  • an ajax is called to see that username and password do match : OK<
4条回答
  •  独厮守ぢ
    2020-12-15 09:32

    The return false is blocking the default form submit action. You have either to return true from the form1Submit() function to let the default form submit action do its job, or to add another $.post() inside the else which submits the data to the form asynchronously, if your intent was to do it using ajaxical powers.

提交回复
热议问题