kaneda kaneda - 5 months ago 15
jQuery Question

How can I unregister a handler set to jQuery.ajaxStart() function?

I tried doing

$.ajaxStart(function(){})
, but it does not replace it, but appended.

Answer

If I understand, you want to remove the ajaxStart handler from the element.

If so, just use jQuery's unbind() since the handler is attached as an event.

$('selector').unbind('ajaxStart');