AJAX from jQuery

jQuery provides wrapper functions that offer a bit cleaner interface to send AJAX requests. In jQuery, the XMLHttpRequest object is replaced by the jqXHR object, which is a jQuery version with a few additional methods to support the jQuery AJAX wrapper functions. The following is a list of the jQuery AJAX wrapper functions:

Image .load(url [, data ] [, success(data, textStatus, jqXHR) ] )—This method is used to load data from the server directly into  the elements represented by jQuery object.

Image .getScript (url [, data ] [, success(data, ...

Get jQuery and JavaScript Phrasebook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.