I try to modify my upload with jQuery (replace the input file button). This code works fine on FF and Chrome but Internet Explorer do not submit the form? Why not? There are no errors shown in developer tools. jQuery Version is 1.10.2. Internet Explorer 10. Some source:
<form action="http://localhost/....." method="post"
accept-charset="utf-8" id="item_document_form"
enctype="multipart/form-data">
<input type="file" name="userfile" id="userfile" style="display: none;" />
</form>
<button id="add_file_btn">Upload file</button>
and the relevant script:
$("#add_file_btn").button();
$("#add_file_btn").click(function() {
$("#userfile").click();
});
$("#userfile").change(function () {
$('#ajaxupload').fadeIn();
$("#item_document_form").submit();
});