From 775671f526c4f18f2d8ee7e54537df9dd9a9a0e8 Mon Sep 17 00:00:00 2001
From: Aurelio De Rosa Note: The event handling suite also has a method named Note: Prior to jQuery 3.0, the event handling suite also had a method named This method is the simplest way to fetch data from the server. It is roughly equivalent to .load()
. jQuery determines which method to fire based on the set of arguments passed to it..load()
. Older versions of jQuery determined which method to fire based on the set of arguments passed to it.$.get(url, data, success)
except that it is a method rather than global function and it has an implicit callback function. When a successful response is detected (i.e. when textStatus
is "success" or "notmodified"), .load()
sets the HTML contents of the matched element to the returned data. This means that most uses of the method can be quite simple: