【发布时间】:2012-12-01 05:07:53
【问题描述】:
可能重复:
Retrieving file names out of a multi-file upload control with javascript
知道了:
<input type="file" name="file1" multiple="multiple" />
在 jQuery 中使用它:
$("input[name=file1]").change(function() {
$("input[name=file]").val($("input[name=file1]").val());
});
现在我的问题是:它只给出第一个选定的文件,我想拥有它们...怎么做? 谢谢!
【问题讨论】:
-
@bvl 确保单击正确答案旁边的复选标记,否则最终人们将停止帮助您。不是吠叫,只是通知:)