Tuesday, May 27, 2014

hide functionality in jquery

1) Script

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
  $("p").click(function(){
    $(this).hide();
  });
});
</script>


2) <p>ClickTo Hide!</p>

No comments:

Post a Comment