What is the difference between $.get(), $.post() and $.ajax() in jQuery?

MethodUse
$.get(url, data, fn)Quick GET request
$.post(url, data, fn)Quick POST request
$.getJSON(url, fn)GET request which expects JSON
$.ajax({...})Any method (PUT, DELETE), headers, timeout, content type and more

See jQuery Ajax.


Learn more about the similar topics:
Tutorials
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.