Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Target last li item groups of class "test" within ul Reply To: Target last li item groups of class "test" within ul

#250016
Gabriel
Participant

jQuery .last() could do it:

$('test').last().addClass('last-test');

http://codepen.io/FStop/pen/8afcb7500f100fa2d32c1635b148b1ed/