$(document).ready(function(){ $("button").click(function(){ $("p").hide(); }); });
<h2>This is a heading</h2> <p>This is a paragraph.</p> <p>This is another paragraph.</p> <button type="button">Click me</button>