Quantcast
Channel: User Chase Seibert - Stack Overflow
Viewing all articles
Browse latest Browse all 43

Answer by Chase Seibert for Jquery attr src removes one string from src but not a more complex one, why?

$
0
0

The following works for me. What's different about your code?

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script><img src="foobar"><a href="#" onclick="$('img').attr('src', 'http://player.vimeo.com/video/43550778?title=0&amp;byline=0&amp;portrait=0&amp;color=ababab');">click</a><a href="#" onclick="$('img').removeAttr('src');">remove</a>

Viewing all articles
Browse latest Browse all 43

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>