Try adding this to your "yes" click handler code:

$(this).unbind('click');

Like this ?

$("#modal_yes").click(function() {
        $(this).unbind('click');
        console.log(id);        // second console log
        $.unblockUI();
});

If I do this, the effect is that the Yes button's click is not binded
anymore. Clicking on it doesn't do anything.
I tried to add it at the end of the block but it's the same effect

Reply via email to