I am having an issue with swapping images in IE6. Works fine in all browser except that one.
Here is the following code:
$(function() {
$("#image1").click(function() {
$(this).attr('src', '/v12/images/small/sm-wall-1-on.png');
$('#image2').attr('src', '/v12/images/small/sm-wall-2.png');
$('#image3').attr('src', '/v12/images/small/sm-wall-3.png');
});
});
Then here is the HTML
<li style="padding:3px;"><img id="image1" src="/v12/images/small/sm-wall-1-off.png" style="border:0px; width:95px; height:75px;" class="pngfix" alt="" /></li>
<li style="padding:3px;"><img id="image2" src="/v12/images/small/sm-wall-2-selected.png" class="pngfix" style="border:0px; width:95px; height:75px;" class="pngfix" alt="" /></li>
<li style="padding:3px;"><img id="image3" src="/v12/images/small/sm-wall-3.png" class="pngfix" style="border:0px; width:95px; height:75px;" class="pngfix" alt="" /></li>
So basically if I click on one of the images I want to swap out the others along with the one I just clicked. IE6 hides all images as soon as I perform the click.
Thoughts?