How can I remove the ‘unbind’ after using it? I need to enable back the click event.
below my function.
1.This function is to disable the print link
function edit(){
$("#ENQUIRY_VIEWMETER a.print").addClass('ui-state-disabled').unbind("click");
}
2.to enable the link to be clickable.
function reset(){
$("#ENQUIRY_VIEWMETER a.print").removeClass('ui-state-disabled').bind("click");
}
Is there other method so that I can enable the link to be click again?
By using new Jquery 1.7
On()andoff()methods, you can achieve this like in following… For further details plz read Usage with Examplesoff():
Or
on():