I have a function that is triggered by a click. I want after I click it, disabling the click. So I made this
$('.item-blog').on('click', function(){
$('.item-blog').off('click');
});
and It's working perfectly.
But later on, at the end of all the events, within the last function, when I have resetted all the stuff and I have run all the code, I want to be able to re click the first function in order to fire the same events again. So I put this within the last function that resets everything.
$('.item-blog').on('click');
But it is not working at all.
I even tried bind and unbind but every time I want to re enable the click, it is never working.
Some help?
Thank you very much