I'me not sure I understand ? : like this : ? var tlSize = 0; $("#scroller p").each( function(i){ var elSize = $(this).width(); tlSize += elSize; });
alert(tlSize); On 3 juil, 13:24, eewan <ifi...@gmail.com> wrote: > Hello, > I want to find full width of all elements in one div. Here is example > code: > <div id="scroller"> > <p>text</p> > <p>text</p> > <p>text</p> > <p>text</p> > </div> > > $("#scroller p").each( > function(i){ > var elSize = $(this).width();}); > > I need total width of all <p> :-) > > Thanks in advance