How to bind to AJAX complete event in regard to styling the AJAX button submit throbber With this I can bind to the AJAX button submit event:


Drupal.ajax.prototype.beforeSend = function (xmlhttprequest, options) {
...
}


My question, how to bind to the opposite (i.e. when AJAX button submit finishes)? Thanks.
You can use success function. You can refer this for its usage.

/**
 * Handler for the form redirection completion.
 */
Drupal.ajax.prototype.success = function (response, status) {
  ...
}