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
To remove
ALL event-handlers
, this is what worked for me:
To remove all event handlers mean to have the plain HTML structure
without all the event handlers
attached to the element
and its child nodes
. To do this, jQuery's clone()
helped.
var original, clone;
// element with id my-div and its child nodes have some event-handlers
original = $('#my-div');
clone = original.clone();
//
original.replaceWith(clone);
With this, we'll have the clone
in place of the original
with no event-handlers
on it.
Good Luck...