jQuery cut link
Posted
by Happy
on Stack Overflow
See other posts from Stack Overflow
or by Happy
Published on 2010-06-14T22:23:28Z
Indexed on
2010/06/14
22:32 UTC
Read the original article
Hit count: 240
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.
© Stack Overflow or respective owner