I want to remove the event handler when the event fires. I cannot use one() because there are cases when I do not want to remove the event handler. Here is what I mean:
$('#a').on('click',function(){ if(...)
Edit: I forgot to mention that other event handlers are attached to $('#a') . I only want to delete the current one.
javascript jquery
Leo jiang
source share