paragraph elements which have class=our_para.Â
Put this code in script section of your html document -Â
$(document).ready(function(){
 $("button").click(function(){
  $("p.our_para").hide();
 });
});
Then put this code in body section of your html document -Â
<h2 class="our_para">This is a test heading</h2>
<p class="our_para">This is a test paragraph.</p>
<p>This is another paragraph.</p>
<button> Click here and view result </button>
Hope you like it, don't forget to share it.