单击一个按钮,它将在当前页面上方显示一个分区/窗口,以上传文件。
我该如何使用jQuery呢?
提前致谢。
最佳答案
<html>
<input type="submit" id="clickme"> </input>
<div id="divtobeshown" style="display:none">
<input type="file" />
</div>
<html>
Js:
$("#clickme").live("click", function()
{
$("#divtobeshown").show();
});
http://jsfiddle.net/anilkamath87/cfFkd/