HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("p:last-child").css("color","green"); }); </script> </head> <body> <h1>jQuery :last-child Selector</h1> <p>This is paragraph</p> </body> </html>
OUTPUT
×

Save as Private