Find the Second Last Element In JQuery

In this post we will see how we can find the second last element from a collection using JQuery collection.

  1. $('#columnsList li:nth-last-child(2)');  

Here columnsList is the ID of our element which has the collection. In my case I am having li as inner elements.

Please see my other posts related to JQuery here: JQuery Posts.