Is there any advantage of using $.ajax() for ajax call against $.get() or $.post()?
Answer / chaitanya
By using jQuery post()/ jQuery get(), you always trust the response from the server and you believe it is going to be successful all the time. Well, it is certainly not a good idea to trust the response. As there can be n number of reason which may lead to failure of response.
Where jQuery.ajax() is jQuery's low-level AJAX implementation. $.get and $.post are higher-level abstractions that are often easier to understand and use, but don't offer as much functionality (such as error callbacks). Find out more here.
| Is This Answer Correct ? | 2 Yes | 0 No |
What are the selectors in jquery? How many types of selectors in jquery?
What are the advantages of method chaining in jquery?
Can we use our own specific character in the place of $ sign in jQuery?
How do you add an HTML element in DOM tree?
How we can remove an attribute of an html tag in jquery?
Is jquery code exicuted on the clientside, or serverside?
What is the difference between find and children methods in jquery?
How can we add change font size using jquery?
How to create, read and delete cookies with jquery?
what are the features of jquery
What is the advantage of using the minified version of jquery rather than using the conventional one?
Tell me what does $("div") will select? : jquery mobile