Possible Duplicate:
jQuery.ajax handling continue responses: “success:” vs “.done”?
Is there any benefit to using jquery's done method compared to the success callback ? As far as I can tell these would both execute similar (if not the same?)
Case 1 using $.get
callback
$.get("....", function(data){
console.log(data);
});
Case 2 using .done()
$.get("....").done(function(data){
console.log(data);
});