如何使用JQuery检测文件输入是否选择了文件?
问题描述:
然后提醒文件名?
答
这应该足够了:
alert($('#your_input_box').val());
文件选择框只是一个输入框,据我所知。阅读更多这个问题: jQuery:从中选择文件名< input type =" file" /> 。
A file selection box is just an input box, from what I can tell. Read more from this question: jQuery: get the file name selected from <input type="file" />.