I have a question regarding .ajaxComplete ().
Suppose I do this:
$('#someId').ajaxComplete(function () {
if (ajaxCompleted == isAjaxImWaitingForToComplete) {
}
});
This will then be called every time the ajax task finishes. Is there a way to do this only once and then unregister? Can I add $ ('# someId'). Unbind (); at the bottom of the function inside ajaxComplete?
source
share