Getting div top position

Getting div top position

Hi,

I need to get a div's top position that has the following css -

  1. #bodyDIV {
                positionabsolute;
                width80%;
                height80%;
                bottom10%;
                left10%;
                background-color#808080;
                border-radius:3px;
            }

The following code return "auto"

  1. mydiv.css("top")
What is the right way to get the actual div's top position ?