¡@

Home 

2014/10/16 ¤W¤È 12:04:25

jquery Programming Glossary: input.file

Upload files using input type=“file” field with .change() event not always firing in IE and Chrome

http://stackoverflow.com/questions/10214947/upload-files-using-input-type-file-field-with-change-event-not-always-firin

upload files document .ready function .attachmentsUpload input.file .change function 'form' .submit form class attachmentsUpload.. this jsFiddle Demonstration . Sample .attachmentsUpload input.file .change function if .attachmentsUpload input.file .val return.. input.file .change function if .attachmentsUpload input.file .val return your ajax submit .attachmentsUpload input.file..

Upload files using input type=“file” field with .change() event not always firing in IE and Chrome

http://stackoverflow.com/questions/10214947/upload-files-using-input-type-file-field-with-change-event-not-always-firin

firing in IE and Chrome I have simple piece of code to upload files document .ready function .attachmentsUpload input.file .change function 'form' .submit form class attachmentsUpload action UploadHandler.ashx method post enctype multipart form.. only if the value is not empty. Have a look at my sample and this jsFiddle Demonstration . Sample .attachmentsUpload input.file .change function if .attachmentsUpload input.file .val return your ajax submit .attachmentsUpload input.file .val Update.. sample and this jsFiddle Demonstration . Sample .attachmentsUpload input.file .change function if .attachmentsUpload input.file .val return your ajax submit .attachmentsUpload input.file .val Update This for any reason does not work in IE9. You can..