Jquery: change event to input file on IE

Posted by cmedeiros on Stack Overflow See other posts from Stack Overflow or by cmedeiros
Published on 2010-03-05T19:21:56Z Indexed on 2010/04/29 22:27 UTC
Read the original article Hit count: 279

Filed under:
|
|
|

Hello guys, I already looked all around, and can't find a solution: I have a form to upload files, and it should fire the submit after the file selection.

On FF/Chrome it goes weel, and submit the form after file selection, but I can't do this on ie.

Already tried with click/propertychange but nothing happens. Some code I already tried:

$("#attach").attr("onChange", "alert('I changed')");

$("#attach").live($.browser.msie? 'propertychange': 'change', function(e) { ... });

Any sugestions to I try?

Thanks for any help

Edit1: I think there's a important information, this input file, is created on the fly, because of it I use .live() to bind the event

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ie