IE doesn't fire input event on delete
I am trying to put some placeholders on a form. They work fine in Chrome and Firefox, but I can't seem to get them to work on IE (I'm testing this with IE9). The problem is that the input event only fires when text is added to the input, not when it is deleted (using delete key, cut, right click, etc.).
This is my code (uses jQuery):
$input.on('input propertychange', function() {
if($input.val() == '')
$placeholder.show();
else $placeholder.hide();
});
I read that this might be a known issue. If so, are there any workarounds?
Thank you for your help.
+3
source to share
2 answers