On click Hide (jquery) new

by Harsh Bhatnagar

HTML

<p>If you click on me, I will disappear.</p>
<p>Click me away!</p>
<p>Click me too!</p>

JavaScript

$(document).ready(function () {
    $("p").click(function () {
        $(this).hide();
    });
});