Question: What is the difference between .offset() and .position()?
I read some docs on that but still I am not at all clear with what is real difference between these two. I would request a simple explanation on the same.
My Observation:
I wrote a javascript code which I placed in the web page(.aspx) itself. The javascript is basically setting the position of a modal popup. In that code I used .position() to get the position of a div where i will be placing the modal popup. Now, Here is the twist- When I moved the javascript code into a seperate js file, The .position() was not at all properly working instead I used .offset() and It was working fine.
I would request an explaination on this ?