#
March 24, 2013 at 1:54 pm
Is there any dynamic reason to be replacing the images? Trying to manipulate an element like that is very tricky (if it can even be really done). What are you trying to accomplish, there may be a better alternative.
You could always do a ghetto trick
$('#js-img').hide(0);
$('#js-img').attr('src', 'new/image/');
$('#js-img').show(0);
— or —
$('#js-img').hide(0).attr('src', 'new/image').show(0);