<head>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
<p>This is the first paragraph.</p>
<p>This is the second paragraph.</p>
<p>This is the last paragraph.</p>
<button id="fadeOutBtn">Fade Out Paragraphs</button>
<script>
$(document).ready(function() {
$("#fadeOutBtn").click(function() {
$("p").fadeOut();
});
});
</script>
</body>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.