[jQuery] Re: Get dynamic width

2009-07-03 Thread eewan
Thank you very much :-)

[jQuery] Re: Get dynamic width

2009-07-03 Thread eewan
Thank you very much. This done the job :-)

[jQuery] Re: Get dynamic width

2009-07-03 Thread babwar
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 wrote: > Hello, > I want to find full width of all elements in one div. Here is example > code: > > text

[jQuery] Re: Get dynamic width

2009-07-03 Thread babwar
like this ? var tlSize = 0; $("#scroller p").each( function(i){ var elSize = $(this).width(); tlSize += elSize; }); alert(tlSize); On 3 juil, 13:24, eewan wrote: > Hello, > I want to find full width of all elements in one div. Here is example > code: > > text > text > text > text > > > $("#sc

[jQuery] Re: Get dynamic width

2009-07-03 Thread Jonathan Vanherpe (T & T NV)
eewan wrote: Hello, I want to find full width of all elements in one div. Here is example code: text text text text $("#scroller p").each( function(i){ var elSize = $(this).width();}); I need total width of all :-) Thanks in advance The following seems to work for me: var elSize = 0;

[jQuery] Re: Get dynamic width

2009-07-03 Thread Liam Potter
why not find the width of the div? $("div#scroller").width(); eewan wrote: Hello, I want to find full width of all elements in one div. Here is example code: text text text text $("#scroller p").each( function(i){ var elSize = $(this).width();}); I need total width of all :-) Thanks in