https://css-tricks.com/useful-nth-child-recipies/

if we want to apply any class on second last and last element than we can use

jQuery(".sub-menu li:nth-last-child(-n+2) a span.menu-image-title").addClass('event-more-btn');

Advertisements