# :last Selector

## last ( ) version added: 1.0

Description: Selects the last matched element.

Note that `:last` selects a single element by filtering the current jQuery collection and matching the last element within it.

## Examples:

#### Example: Finds the last table row.

    <!doctype html>
    <html lang="en">
    <head>
      <meta charset="utf-8">
      <title>css demo</title>

      <script src="//code.jquery.com/jquery-1.10.2.js"></script>
    </head>
    <body>

    <table>
      <tr><td>First Row</td></tr>
      <tr><td>Middle Row</td></tr>
      <tr><td>Last Row</td></tr>
    </table>

    <script>

    $( "tr:last" ).css({ backgroundColor: "yellow", fontWeight: "bolder" });

    </script>

    </body>
    </html>

#### Demo: