offset() is only for getting, not setting the offset.

$("#insertLink").click(function(){
   $("#insertDiv")
        .css('position','absolute')
        .css( $(this).offset() )
        .toggle();
});

This should do, haven't tested.

Cheers

--
Ariel Flesler
http://flesler.blogspot.com/


On 18 jun, 14:20, eric <[EMAIL PROTECTED]> wrote:
> I apologize if this is a dupe- but would this be the way to use the
> dimensions library. I am having a tough time positioning elements and
> I can't seem to find too many online demos.
>
>             $("#insertLink").click(function(){
>                 $("#insertDiv").offset($(this).offset());
>                 $("#insertDiv").toggle();
>             });

Reply via email to