As jsfiddle shows in this example , when I change the placeholder, it fires an input event. I tested it on IE 11, but I think older versions have the same problem. Other browsers do not behave this way. Is this an IE bug? If so, is there a workaround for this problem on IE?
Here is the html markup.
<input type="text" />
<button>Change PlaceHolder</button>
And here is the javascript part.
var i = 0;
$('button').click(function(){
$('input').attr('placeholder','placeholder ' + i++);
});
$('input').bind('input',function(){
alert('input even occur');
});
source
share