如何删除“输入类型=文件”的值 [英] How to delete the value of an "input type=file"
本文介绍了如何删除“输入类型=文件”的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道如何使用Jquery删除输入类型文件的值。
更精确地说,我称之为的值是当你从这个输入上传一个文件,但你还没有发送表单。我希望我能理解。
$(document).ready( ();
$('input')。val
I want to know how to delete the value of an input type file with Jquery.
More precisely what I call the value is when you upload a file from this input, but you haven't send the form.
I hope i'm understandable.
解决方案
You can do:
$(document).ready(function(){
$('input').val("");
});
这篇关于如何删除“输入类型=文件”的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文