Add all elements in array
<p>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.</p>

<p>This function is getting width of every element, I really don't care about every element, just how much width they are taking together...</p>

<pre><code>var listWidth = [];
$('#thumbContainer ul li').each(function(){
    listWidth.push($(this).width());
});
</code></pre>
