你好我有下面的代码,我需要将文件值获取到 <span>
“filevalue”,但我不知道如何使用 jquery 做到这一点,所以请给我一些例子
<div id="file">
<input type="file" id="ufile"/>
<div id="info">
<span class="filevalue">file value goes here</span>
</div>
</div>
最佳答案
$("#ufile").on("change", function() {
$("#info .filevalue").text(this.value);
});
关于jquery - 获取div的输入文件值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13612947/