I have some HTML like this:
<span class="fetchSeries"><a href="sma10">10</a></span>
I want to get the value "sma10," but the href attribute becomes an absolute path when I try to reference it. Is there a way to get the relative path of the anchor tag?
Here's what I'm trying to accomplish:
- Bind a custom function to click() for any hyperlink within a span class="fetchSeries" tag.
- Extract a value that is unique for that link (eg. sma10).