submit form does not stop in jquery ajax call

前端 未结 6 1220
感动是毒
感动是毒 2020-11-29 12:29

I got following code :

$.ajax({
    type: \"POST\",
    async: false,              
    url: \"CheckIdExist\",
    data: param,
    success: function(result)         


        
6条回答
  •  佛祖请我去吃肉
    2020-11-29 13:12

    You can't put this code in a function or in the onsubmit of a form, the success function returns it's result returning to the jQuery ajax context, NOT the form submit context.

提交回复
热议问题