Kiran Reddy Kiran Reddy - 1 year ago 108
Ajax Question

What is the main difference between $.ajax and $.post?

In my project there are $.ajax calls and some $.post calls.

I think both are same!

Is that correct?

Answer Source

using $.ajax you can make different types of request to the url like get, post whereas $.post makes a post request to the url. You can also add Header parameters with $.ajax

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download