Having trouble determining the URL of a using .closest, .find and potentially other jQuery methods. The webpage structure is as follows:
ul
ul
ul.good
li
...
li
li
<a href="/findme">findme</a>
ul
.
.
.
ul
li
a <-this
There are multiple nested lists on the page. I am trying to retrieve the href value of the a tag within the li element of the ul with class "good". The issue arises when I use closest() to find ul.good, as I then struggle to isolate the specific parent li element that contains this.
In essence, how can I extract the /findme value from a<-this? Is this feasible?
Just to clarify, the a href /findme occurs at the top level within ul.good.
a<-this is located much deeper within the structure (at an unknown depth).
Appreciate your assistance.