如何使用JQuery检测文件输入是否选择了文件? [英] How do I use JQuery to detect if a file input has a file selected?
本文介绍了如何使用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" />.
这篇关于如何使用JQuery检测文件输入是否选择了文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文