I have function that is getting the width of my images in list and I need to count them all together. When I do it in foreach it brings some weird number.
This function is getting width of every element, I really don't care about every element, just how much width they are taking together...
var listWidth = [];
$('#thumbContainer ul li').each(function(){
listWidth.push($(this).width());
});
maprather thaneach.