javascript - jQuery 帮助 : click the button and pop up a division/window

标签 javascript jquery css html

点击按钮,当前页面上方会出现一个分区/窗口,用于上传文件。

我如何使用 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/

关于javascript - jQuery 帮助 : click the button and pop up a division/window,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6937155/

相关文章:

Javascript:从购物车中减去商品会导致负值

javascript - 解决这类问题需要研究什么?

javascript - 成功函数中的数组未定义

jQuery:随机定位的 div

javascript - angular如何定义css

jquery - 移除两个导航项之间的阴影

javascript - 谷歌浏览器扩展 : Popup window like Firebug Lite?

javascript - 使用库时出错 - javascript

javascript - 从字符串中提取数字

css - 使用 css 更改颜色 svg 文件