如何在html或jQuery的文本框中获取浏览的文件路径? [英] How to get the browsed file path in text box in html or jQuery?

查看:268
本文介绍了如何在html或jQuery的文本框中获取浏览的文件路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<html>
<head>
<title>Create New Project</title>
<style>


</style>

</head>
<body>
<tr bgcolor="#FFCCFF">			
              <td width="24%" height="30"><span class="style9">Background Image</span></td>
              <td width="76%"><input type="file" name="background_image" size="96"></td>
            </tr>


</body>
</html>





当我浏览文件或图像时,它应该在文本框中显示路径。我该怎么办?



When I browse a file or an image it should display the path in a text box.How can I do this?

推荐答案





查看此



使用jquery获取文件的完整路径 [ ^ ]





谢谢



Magesh
Hi,

Check This

get full path of a file using jquery[^]


Thanks

Magesh


试试



http:/ /forums.asp.net/t/1668581.aspx?getting+the+full+path+from+an+input+file+using+jquery [ ^ ]


这篇关于如何在html或jQuery的文本框中获取浏览的文件路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆