The offset() method is only gettable, not settable.

You might need to do something like this:

$("#insertLink").click(function(){
   var offset = $(this).offset();
   $("#insertDiv").css({ top: offset.top, left: offset.left }).toggle();
});

-- Josh

----- Original Message ----- From: "eric" <[EMAIL PROTECTED]>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Wednesday, June 18, 2008 10:13 AM
Subject: [jQuery] Quick question about dimensions



I've recently been exploring the jquery library and I apologize if
this is a silly question. But could someone post a simple example of
using the dimension library to position a div directly below a link. I
have tried something like this:

           $("#insertLink").click(function(){
               $("#insertDiv").offset($(this).offset());
               $("#insertDiv").toggle();
           });

but it doesn't seem to work. Am I missing something?

Reply via email to