<!DOCTYPE html><script> $(document).ready(function(){ $("button").click(function(){ $("p:first").hide(); }); }); </script> </head> <body> <h2>This is a heading</h2> <p>This is a paragraph.</p> <p>This is another paragraph.</p> <button>Click me</button> </body> </html> |
This is a headingThis is a paragraph. This is another paragraph. |