Calculate width with jQuery
<p>Depending on amout of <code>&lt;div clas="product"&gt;&lt;/div&gt;</code> I'm trying to set width for .productholder</p>

<pre><code> &lt;div class="productholder"&gt;
    &lt;div clas="product"&gt;&lt;/div&gt;
    &lt;div clas="product"&gt;&lt;/div&gt;
    &lt;div clas="product"&gt;&lt;/div&gt;
    &lt;div clas="product"&gt;&lt;/div&gt;
    &lt;div clas="product"&gt;&lt;/div&gt;
 &lt;/div&gt;
</code></pre>

<p>I can set fix width for .product if this will help.</p>

<p>I have tried this, but don't seems to be working:</p>

<pre><code>var width = 0;
$('.product').each(function() {
    width += $(this).outerWidth( true );
});
$('.productholder').css('width', width + 250);
</code></pre>

<p>Thank you for your help in advance.</p>
