click the button and pop up a division/window - Javascript jQuery

Javascript examples for jQuery:Form Button

Description

click the button and pop up a division/window

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-1.6.2.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){/*from w ww .  j a  v  a 2 s  .  c  o  m*/
$("#clickme").live("click", function()
{
    $("#divtobeshown").show();
});
    });

      </script> 
 </head> 
 <body> 
  <input type="submit" id="clickme"> 
  <div id="divtobeshown" style="display:none"> 
   <input type="file"> 
  </div>  
 </body>
</html>

Related Tutorials