Jquery input.files equivalent

前端 未结 4 769
一向
一向 2020-12-09 16:46

I have a simple html form with a single file upload input. (jsfiddle)

In the past, I have accessed the file selected by the user using input.files, howe

4条回答
  •  情深已故
    2020-12-09 17:13

    $(function () {
        $("#cmdSubmit").bind("click", function () {
           alert(this.files);
         });        
    });​
    

提交回复
热议问题