ExampleChange the content of a div element when an AJAX requests is about to be sent:
Try it yourself » |
The ajaxSend() method specifies a function to run when an AJAX requests is about to be sent.
$(selector).ajaxSend(function(event,xhr,options)) |
Parameter | Description |
---|---|
function(event,xhr,options) |
Required. Specifies the function to run if the request succeeds Additional parameters:
|