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
All the approaches described did not work for me because I was adding the click event with on()
to the document where the element was created at run-time:
$(document).on("click", ".button", function() {
doSomething();
});
My workaround:
As I could not unbind the ".button" class I just assigned another class to the button that had the same CSS styles. By doing so the live/on-event-handler ignored the click finally:
// prevent another click on the button by assigning another class
$(".button").attr("class","buttonOff");
Hope that helps.