Thank you very much :-)
Thank you very much. This done the job :-)
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
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
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;
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
6 matches
Mail list logo