“JQuery Ajax Get Code” Respostas de código

JQuery Ajax Get Code

$.ajax({
    //...        
    success: function(data, textStatus, xhr) {
        console.log(xhr.status);
    },
    complete: function(xhr, textStatus) {
        console.log(xhr.status);
    } 
});
Yossimal

Ajax Obtenha resposta HTML

//your jquery code will be like this:
$.ajax({
      type: 'POST',
      url: $url,
      data: new FormData(this),
      dataType: 'json',
      contentType: false,
      processData:false,//this is a must
      success: function(response){ 
      		$('your_selector').html(response);
      }
});

//php code will be like this
echo '<div>some html code</div>';
die();
Anime Freak

Respostas semelhantes a “JQuery Ajax Get Code”

Perguntas semelhantes a “JQuery Ajax Get Code”

Mais respostas relacionadas para “JQuery Ajax Get Code” em JavaScript

Procure respostas de código populares por idioma

Procurar outros idiomas de código