jquery last child

Solutions on MaxInterview for jquery last child by the best coders in the world

showing results for - "jquery last child"
Bellamy
12 Mar 2018
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>
similar questions
queries leading to this page
jquery last child