I have this event handler,
$('#table_product').on 'click', '.th1',(event) ->
$(this).unbind("click") #Not working
What I'm trying to achieve is when a user triggers this event, it will disable/detach the click event handler from .th1
. So it won't give any response to the user for the next request.
Currently, I have tried unbind()
and off()
, but still no luck.. Any other suggestion ?