Difference between revisions of "Template:Susung/Javascript"
Line 1: | Line 1: | ||
<html> | <html> | ||
<script> | <script> | ||
− | + | $(document).ready(function(){ | |
+ | $("#hide").click(function(){ | ||
+ | $("p").hide(); | ||
+ | }); | ||
+ | $("#show").click(function(){ | ||
+ | $("p").show(); | ||
+ | }); | ||
+ | }); | ||
</script> | </script> | ||
+ | |||
+ | <p>If you click on the "Hide" button, I will disappear.</p> | ||
+ | <button id="hide">Hide</button> | ||
+ | <button id="show">Show</button> | ||
</html> | </html> |
Revision as of 17:23, 11 June 2015
If you click on the "Hide" button, I will disappear.