1<ul>
2 <li>list item 1</li>
3 <li>list item 2</li>
4 <li>list item 3</li>
5 <li>list item 4</li>
6 <li>list item 5</li>
7</ul>
8<script>
9 //in all the group you can find the last item with .last() function
10 $( "li" ).last().css( "background-color", "red" );
11</script>