Saturday, July 30, 2011

jQuery Examples

// ajax callback functions
success(data, textStatus, jqXHR)
A function to be called if the request succeeds.

error(jqXHR, textStatus, errorThrown)
A function to be called if the request fails.

complete(jqXHR, textStatus)
A function to be called when the request finishes
(after success and error callbacks are executed).