Reputation: 10839
I’m having some difficulties trying to dynamically change an image.
<a href="#no-reload" id="dropMenuButton49" class="dropMenuButton">
<input id="searchEngineImage" type="image" src="http://example.com/image.php?i=yahoo-icon.png">
<input type="image" src="images/down.png" name="dropDown">
</a>
I need to change the first one: http://example.com/image.php?i=yahoo-icon.png.
Is this possible with jQuery or something else?
Upvotes: 1
Views: 165
Reputation: 8913
$('#searchEngineImage').attr('src', "http://some.other/image.png");
Upvotes: 0