What is difference between jQuery.get() and jQuery.ajax() method?

Solution

jQuery.ajax() method is used to perform asynchronous HTTP request.

If you don't need the extensive configurability of $.ajax(), and you don't care about handling errors, the Ajax convenience functions provided by jQuery can be useful, for example $.get() method to load data from the server using a HTTP GET request. These methods are just "wrappers" around the core $.ajax() method, and simply pre-set some of the options on the $.ajax() method.

Share this thread

Comments

Comments
comments powered by Disqus

Navigation

Social Media