Jquery hides and displays instances of tags

  • 2020-03-27 00:07:54
  • OfStack


<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<script language="javascript" type="text/javascript" src="jquery-1.7.2.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function(){
$("#hide").click(function(){
$("p").hide(1000);
$("#show").click(function(){
$("p").show(1000);
});
});
});
</script>
<p>
 Hello and welcome to learning jquery
</p>
<button id="show"> According to </button>
<button id="hide"> hidden </button>


Related articles: