/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$("#myImage").attr("src", "path/to/newImage.jpg");
URL: http://jquery-howto.blogspot.com/2009/04/jquery-image-swap-or-how-to-replace.html
$("#myImage").attr("src", "path/to/newImage.jpg");
URL: http://jquery-howto.blogspot.com/2009/04/jquery-image-swap-or-how-to-replace.html