jQuery cut link
- by Happy
Here is html:
<a href="http://site.com/any/different/folders/picture_name.jpg">Go and win</a>
<a href="http://site.com/not/similar/links/some_other_name.png">Go and win</a>
How to cut all the data from a href, except picture_name.jpg? There can be any length of the link, we must take just the value from last / to last "
And anybody does not the shortest way to compare, if alt and title of current link are equal?
Thanks.