jQuery animate on an image replacement

Posted by Lee on Stack Overflow See other posts from Stack Overflow or by Lee
Published on 2010-04-30T12:49:38Z Indexed on 2010/04/30 12:57 UTC
Read the original article Hit count: 354

Filed under:
|
|

Hey All

Hope you can advise I would like to add some simple fade in out of an image replacement which I have hooked into a select menu.ie,

$("#vehicle").change(function(){
    var selected = $(this).val();
    $("#selectedVehicle").attr('src', '/assets/images/mini/'+selected+'.png');
});

<img id="selectedVehicle" src="/assets/v2/images/select-vehicle.png">

any suggestions how I can do it?

Thanks in advanced

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about animation