I am not sure why this is happening, I listed two ways one that the code works and another that doesn't. I want to get the value inside de the EACH with THIS if this is possible so I can alter the value, but I can olny select them from outside doing an each for all IMG, which makes me loose the reference for the TD associated with that IMG.
http://jsfiddle.net/4w8030th/1/
// Cannot retrieve SRC inside IMG tag
$.each($('tr.infraTrClara'), function () {
// Post-It
var postit = $(this).children('td:nth-child(2)').select('img');
postit_src = $(postit).attr('src');
alert(postit_src);
});
// Can retrieve SRC inside IMG tag
$.each($('tr.infraTrClara td:nth-child(2) img'), function () {
// Post-It
var postit = $(this).attr('src');
alert(postit);
});