1.

What is the difference between .attr() vs .prop()?

Answer»

As of JQUERY 1.5, Jquery AJAX() returns jqXHR object which implements the Promise interface, the promise includes a callback method CALLED jqXHR.FAIL();

Ex:

let jqxhr = $.ajax("ServerPage.php")  .done(function() { alert( "success" );  })   .fail(function( jqXHR, textStatus ) { alert( "Request failed: " + textStatus );  });


Discussion

No Comment Found