I made: http://jsfiddle.net/ablueman/sfjL9kyr/ and wanted to apply this to a class. So every DIV I put that class in, it would show the width and height.
I started trying to create it but I've hit a brick wall: http://jsfiddle.net/ablueman/2uvpk2d5/
In the first DIV it puts 2 working div sets in.
In the second DIV it puts 2 non-working div sets in.

I've tried everything I can think of, but Im sure its just a fundamental error. Please help.
if ($('div').hasClass('change')) {
$('.change').each(function (iterate, val) {
twoDivs = "<div id='changelog"+iterate+"'></div><div style='clear: right;'></div>";
$('.change').append(twoDivs);
$("#changelog"+iterate).text(' W: ' + $('.change').width() + 'px , H:' + $('.change').height() + 'px ');
$(window).resize(function() {
$("#changelog"+iterate).text(' W: ' + $('.change').width() + 'px , H:' + $('.change').height() + 'px ');
});
});
}
Andy