Code for Hide / show button.

Sunny.Sagar
Posted by Sunny.Sagar under jQuery category on | Points: 40 | Views : 357
<script>
$(document).ready(function(){
$("#hide").click(function(){
$("p").hide();
});
$("#show").click(function(){
$("p").show();
});
});
</script>
</head>
<body>

<p>I am Pradeep !Click the hide button to hide my name.</p>

<button id="hide">Hide</button>
<button id="show">Show</button>

Comments or Responses

Login to post response