Using jQuery each to grab image height
问题 I have a bunch of images on a page. I'm trying to use jQuery to grab the height of each image and display it after the image. So here is my code: $(document).ready(function() { $(".thumb").each(function() { imageWidth = $(".thumb img").attr("width"); $(this).after(imageWidth); }); }); <div class="thumb"><img src="" border="0" class="thumb_img"></div> <div class="thumb"><img src="" border="0" class="thumb_img"></div> <div class="thumb"><img src="" border="0" class="thumb_img"></div> [...] My