Jquery how to make continious functions?
<p>I am doing a click function, in that function i am creating a new <code>&lt;div&gt;</code> and wrapping no.of other div's inside as children. Once the children are added, I need to calculate each child's width and apply to the parent (what I created), is it possible to do as chain function?</p>

<pre><code>$('.thick-gallery-slide').wrapAll('&lt;div id="tAllSlides" /&gt;')
</code></pre>

<p>There is no.of <code>.thick-gallery-slide</code> added to <code>#tAllSlides</code>, but how do I find the childrens and apply the total width to the parent <code>('#tAllSlides')</code> ?</p>

<p>Any help? I am looking on continuous functionality.</p>
