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
if you set the onclick
via html
you need to removeAttr ($(this).removeAttr('onclick'))
if you set it via jquery (as the after the first click in my examples above) then you need to unbind($(this).unbind('click'))
If you use $(document).on()
to add a listener to a dynamically created element then you may have to use the following to remove it:
// add the listener
$(document).on('click','.element',function(){
// stuff
});
// remove the listener
$(document).off("click", ".element");