How to get width from all elements in jQuery collection
<p>Why doesn't <code>$(".elm").width()</code> return the width of all elements combined? Is this by design, or some sort of bug?</p>

<p>Or is there some other way to get the width of all elements combined other than this:</p>

<pre><code>var width = 0;
$(".elm").each(function() {
    width += $(this).width();
});
</code></pre>
