I have an input type=\"image\"
. This acts like the cell notes in Microsoft Excel. If someone enters a number into the text box that this input-image
You may be adding the onclick
handler as inline markup:
If so, the jquery .off()
or .unbind()
won't work. You need to add the original event handler in jquery as well:
$("#addreport").on("click", "", function (e) {
openAdd();
});
Then the jquery has a reference to the event handler and can remove it:
$("#addreport").off("click")
VoidKing mentions this a little more obliquely in a comment above.