Didn't know there was a size() function, so I can't help you there.
But you could use the width() and height() functions directly.
Something like:

$("#name_of_div").mousemove(function(){
  var $this = $(this);
  ...
  ...
  $("#test").text( "width: " + $this.width() + ", height: " +
$this.height());
        });

I think...

On Oct 31, 12:10 pm, BluMan <bluman2...@gmail.com> wrote:
>         $("#name_of_div").mousemove(function(){
>                 var dim = $(this).size();
>                 var coord = $(this).position();
>                 $("#test").text( "width: " + dim.width + ", height: " +
> dim.height );
>         });
>
> I use this cod ... and in div test appear: width: undefine heigh:
> undefine .... why ??? Pliz help me

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to