Kiran Reddy Kiran Reddy - 6 months ago 39
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?


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