Sunday, 25 August 2013

IE onpropertychange event doesn't fire

IE onpropertychange event doesn't fire

<a href="javascript:void(0)" id="select-handler">select</a>
<input type="file" id="real-file-input" style="display:none" />
$('#select-handler').click(function(){
$('#real-file-input').click();
});
$('#real-file-input').bind('propertychange', function(){
alert('changed');
});
it's weird that when I use .click() the propertychange won't be fired.

No comments:

Post a Comment