I want to get param from html links.
For example I have following HTML string.
Example 1:
<div class='mydiv'><a href="/display/2">Link</a></div> // get 2
Example 2:
<div class='mydiv'><a href="/display/abc">Link</a></div> // get abc
How can I do this ?
Thanks
check out my fiddle which demonstrates the required functionality with prototype.
or check below…