I'm having this issue specific to IE8. This event doesn't fire in IE8 alone, but is working fine in IE9 and other browsers like Firefox and Chrome.
$('#myId').on('input', function () {
//do something.
}
Please let me know if there is any work around for the same in IE8.
Thanks!
Older versions of IE have an event called propertychange
that you can use. You can check for the propertychange
event and the input
event at the same time:
$('#myId').on("propertychange input",function(ev){
doAwesomeThing();
});
oninput is IE9+, that is why it does not work in IE8
MDN oninput
Feature Chrome Firefox Internet Explorer Opera Safari
Basic support (Yes) 2 9 10 (Yes)
AaronBaker's answer: Works for both IE8 and IE10(html5) as well as modern browsers... without double post of event
I would have used comment or upvote but rep too low.
$('#myId').on("propertychange input",function(ev){
doAwesomeThing();
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With