0

I am little confused about in what scenario Ajax.load() method is used and what scenario jQuery.ajax() is used.

There are many AJAX method, I am mainly confused between ajax.load() and simple ajax

Hitesh
  • 4,098
  • 11
  • 44
  • 82
  • i assume you mean [`$(element).load()`](http://api.jquery.com/load)? please use the [official jquery docs](http://api.jquery.com)! [`$.ajax`](http://api.jquery.com/jQuery.ajax/) – Kevin B Oct 09 '14 at 18:56
  • It is duplicate http://stackoverflow.com/questions/2076642/difference-between-id-load-and-ajax – Hitesh Oct 09 '14 at 19:49

1 Answers1

0

The load function is specifically used for loading in content from another page, into an element on your current page.

The other two functions are general-ajax functions that jQuery provides. Also, .get() is just shorthand for sending a $_GET request via AJAX.

What have you tried
  • 11,018
  • 4
  • 31
  • 45