control-freak-ide/Control-Freak-Documentation/jQuery/docs/entries/last-selector.json
plastic-hub-dev-node-saturn 538369cff7 latest
2021-05-12 18:35:18 +02:00

1 line
748 B
JSON

{"name":"last","type":"selector","title":":last Selector","deprecated":null,"removed":null,"desc":"Selects the last matched element.","categories":["selectors/basic-filter-selectors","selectors/jquery-selector-extensions","version/1.0"],"entries":[{"return":"","signatures":{"added":"1.0"},"examples":{"desc":"Finds the last table row.","code":"\n$( \"tr:last\" ).css({ backgroundColor: \"yellow\", fontWeight: \"bolder\" });\n","html":"\n<table>\n <tr><td>First Row</td></tr>\n <tr><td>Middle Row</td></tr>\n <tr><td>Last Row</td></tr>\n</table>\n"},"longdesc":"\n <p>Note that <code>:last</code> selects a single element by filtering the current jQuery collection and matching the last element within it.</p>\n "}],"slug":"last-selector"}