show hidden field JQuery - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:hide

Description

show hidden field JQuery

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.9.1.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){//  ww  w . ja  v a2 s .  c  om
$(function(){
  $('button').on('click', function(){
    $('#txt').toggle($('#ck').prop('checked'))
  });
});
    });

      </script> 
 </head> 
 <body> 
  <input type="textbox" value="hi" id="txt"> 
  <input type="checkbox" value="test" id="ck"> 
  <button>page load event</button>  
 </body>
</html>

Related Tutorials