views:

39

answers:

1

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

Thank you for your help.

+1  A: 

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');
patrick dw
That's exactly! I 've just figured it out. Thank you.
kaneda