John Robertson Nocos
John Robertson Nocos

Reputation: 1485

When to perform $.ajax or $.get or $.post in jQuery AJAX

It seems that they are just similar and I am really confused when to perform an $.ajax() method or $.get() method or $.post() method in jQuery AJAX. It boggles me a lot to use $.ajax() that's why I just use $.post() always.

Upvotes: 0

Views: 76

Answers (1)

Rajaprabhu Aravindasamy
Rajaprabhu Aravindasamy

Reputation: 67187

All are the same, they are asynchronous. $.get() and $.post() are the shorthand versions of $.ajax(). These shorthand versions do not require any method specification. But while using $.ajax() we have to specify the method of the call, post or get.

Upvotes: 1

Related Questions