last-of-type
RUN
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>first-of-type demo</title> <style> span.active { color: red; font-size: 120%; font-style: italic; } </style> <script src="https://code.jquery.com/jquery-2.0.0.js"></script> </head> <body> <div> <span>Cường,</span> <span>Kính,</span> <span>Chính,</span> <span>Quyền</span> </div> <div> <span>Trường,</span> <span>Hungf,</span> <span>Kim,</span> <span>Quyên</span> </div> <script> $("span:last-of-type").addClass("active"); </script> </body> </html>
PHÓNG TO