I have something like that:
$('input[type=file]').on('change', function(){
console.log('changed!'); });
and it doesn’t work. It works fine on other form elements, but not on input[type=file]. However when I change .on() function to .live() it works fine. I use jQuery 1.8.3 but I want to upgrade to 1.9.0 so there won’t be .live() function anymore. Any ideas?
“On” works fine with jquery 1.8.3. You can try this code and check the demo below which works for me with jquery 1.8.3.
Try this : Demo