Post form with Ajax and jQuery

前端 未结 3 1626
-上瘾入骨i
-上瘾入骨i 2021-01-27 10:39

Start learning Ajax (and jQuery), I encounter the issue with post form data, which I could not resolve myself.

First, here is the simple example where I collect data, po

3条回答
  •  逝去的感伤
    2021-01-27 11:25

    I believe you're looking for the success in the .ajax options parameter.

    $.ajax({
      ...
      success: function(d){
        alert(d);
      }
    });
    

提交回复
热议问题