Q:

On changing an image source to the source of another image with jquery

Should the following code not work? 
$('.elastica').click(function(){
    document.getElementById('bigimage').attr('src')= $(this).attr('src');
});

It doesn't change a thing on the site. 
I've also tried this outputting the image location trough the the other image's id, but it comes up empty (literally "").  When I output the other image's src to a div box with innerHTML for texting, it comes up as undefined.  
Either way it won't update bigimage's src. 

A:

$('.elastica').click(function(){
    $('#bigimage').attr('src', $(this).attr('src'));
});

