Brad Bansner
asked on
jQuery: how to select and fadeOut an image based on container ID and 'src' attribute
Given the attached HTML, lets say I have a variable such as:
var replaceImage='art/gr_numbe r_1.jpg';
How can I select the image based on its container ID (the DIV) and its 'src' attribute? I tried these two things with no luck:
$('img[src$=removeImage]') .fadeOut(2 00);
$('src', removeImage).fadeOut(200);
Thanks!
var replaceImage='art/gr_numbe
How can I select the image based on its container ID (the DIV) and its 'src' attribute? I tried these two things with no luck:
$('img[src$=removeImage]')
$('src', removeImage).fadeOut(200);
Thanks!
<div id="question1">
<img class="ranknum" src="art/gr_number_1.jpg" width="200" height="240" border="0" />
</div>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER