click


First Paragraph

Second Paragraph

Yet one more Paragraph

<script src="//code.jquery.com/jquery-1.10.2.js"></script>

<p>First Paragraph</p>
<p>Second Paragraph</p>
<p>Yet one more Paragraph</p>
 
<script>
$( "p" ).click(function() {
  $( this ).slideUp();
});
</script>

<style>
  p {
    color: red;
    margin: 5px;
    cursor: pointer;
  }
  p:hover {
    background: yellow;
  }
  </style>

Leave a Reply