IE event for right-click delete on <input> or <textarea>
Posted
by
Jayraj
on Stack Overflow
See other posts from Stack Overflow
or by Jayraj
Published on 2012-06-28T03:10:17Z
Indexed on
2012/06/28
3:15 UTC
Read the original article
Hit count: 184
What event is fired when you right-click on selected text in an <input>
or <textarea>
tag and the click "Delete" in Internet Explorer (I'm targeting version 9, but if it's good for lower versions too, all the better).
On other browsers , the "input" event appears to work for all text changes through right-click so doing
$("textarea").on("input", function() {...});
works. IE works for cut and paste, but not delete (JSFiddle here) although MDN claims that IE is supported.
© Stack Overflow or respective owner