Javascript examples for jQuery Method and Property:hide
show hidden field JQuery
<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>