开发者

jQuery help : click the button and pop up a division/window

开发者 https://www.devze.com 2023-03-25 22:46 出处:网络
Click a button and it will appear a division/window above that current page to upload file. How can 开发者_开发技巧i do this with jQuery ?

Click a button and it will appear a division/window above that current page to upload file.

How can 开发者_开发技巧i do this with jQuery ?

Thanks in advance.


<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/

0

精彩评论

暂无评论...
验证码 换一张
取 消