I have a table with a couple of rows:
<tr class='data'>
<td class='img'><img class='thumbnail' src='ProductImages/img_1894_72.jpg'/></td>
<td class='bc_img'><img class='thumbnail' src='ProductImages/img_1893_72.jpg'/></td>
</tr>
<tr class='data'>
<td class='img'><img class='thumbnail' src='ProductImages/img_1318_72.jpg'/></td>
<td class='bc_img'><img class='thumbnail' src='ProductImages/img_1646_72.jpg'/></td>
</tr>
The images in the cells are thumbnail images (the 72 in the name specifies a 72px width). I want to write some jQuery that will let me click the second td in either row, sense which of the two rows I chose, and replace the src image in that row with a larger version of the same image, i.e., replace the 72 in the src name with a 300.
My problem is getting from the clicked td to the raw img node within that td. I've been playing with:
$("td.bc_img").click(function () {
console.log("1. this is " , this);
imgNode = $(this).find('img').get();
console.log("2. imgNode is " , imgNode);
console.log("3. imgNode.src is " , imgNode.src);
var thumbSrc = ?; // not sure how to get this
var bigImgSrc = thumbSrc.replace(/_72\.jpg/, "_900.jpg");
});
And that produces the console output:

But that doesn't seem to be what I need. I think I need to get something that looks like:
<img class="thumbnail" src="ProductImages/img_1893_72.jpg">
before I can add .src to it and modify the src.
Thanks for any help.