[jQuery] Re: Find parent width from sum of child divs

2008-06-30 Thread jimster
My limited knowledge of javascript and a bit of googling I got this, which works great: to find width of all child divs: var scrollerW = 0; $("#scroller > div").each(function () { var object = $(this); scrollerW += object.width(); }); $("#scroller").width(scrollerW); and then t

[jQuery] Re: Find parent width from sum of child divs

2008-06-30 Thread jimster
No word here?