Edit Code in left box and click Show Results button to see the result. | Home
<html> <!-- Mirrored from www.tutorialspoint.com/cgi-bin/practice.cgi?file=jquery_147 by HTTrack Website Copier/3.x [XR&CO'2010], Thu, 01 Sep 2011 14:46:55 GMT --> <!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8"><!-- /Added by HTTrack --> <head> <title>the title</title> <script type="text/javascript" src="../jquery/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="../jquery/jquery-ui-1.7.2.custom.min.js"></script> <script type="text/javascript" language="javascript"> $(document).ready(function() { $("#hide").click(function(){ $(".target").hide( "slide", { direction: "down" }, 2000 ); }); $("#show").click(function(){ $(".target").show( "slide", {direction: "up" }, 2000 ); }); }); </script> <style> p { background-color:#bca; width:200px; border:1px solid green; } div{ width:100px; height:100px; background:red; } </style> </head> <body> <p>Click on any of the buttons</p> <button id="hide"> Hide </button> <button id="show"> Show</button> <div class="target"> </div> </body> <!-- Mirrored from www.tutorialspoint.com/cgi-bin/practice.cgi?file=jquery_147 by HTTrack Website Copier/3.x [XR&CO'2010], Thu, 01 Sep 2011 14:46:55 GMT --> <!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8"><!-- /Added by HTTrack --> </html> |