jquery get last matching element code example
Example 1: how get last array value in jquery
$( "li" ).last().css( "background-color", "red" );
Example 2: find last element with class jquery
$('#test div.a:last')
$( "li" ).last().css( "background-color", "red" );
$('#test div.a:last')