success and Error :
A success callback that gets invoked upon successful completion of an Ajax request.
A failure callback that gets invoked in case there is any error while making the request.
Example:
$.ajax({
url: 'URL',
type: 'POST',
data: yourData,
datat...