<html>
<head>
<script src="../../ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$("p:last").css("background-color", "yellow");
});
</script>
</head>
<body>
<p>This is the first paragraph.</p>
<p>This is the second paragraph.</p>
<p>This is the last paragraph.</p>
</body>
<!-- /jquery/tryit.asp?filename=tryjquery_sel_last Fri, 07 Feb 2025 00:11:19 GMT -->
</html>