If I have deep nested unordered list and I have a reference to the root node, is there a built in way to find a last child of \"li\" type that has specific css class? For ex
Not too hard:
$("li.someclass", rootOfList).last()
searches rootOfList for the last li with class someclass
rootOfList
li
someclass