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>

Latest revision as of 21:59, 11 June 2015