.position()
.position( String
p ): Object
Returns the offsetTop and offsetLeft values {'top': el.offsetTop, 'left': el.offsetLeft}
.
console.log( $( "p" ).position().top, $( "p" ).position().left );
String
p ): Object
Returns the offsetTop and offsetLeft values {'top': el.offsetTop, 'left': el.offsetLeft}
.
console.log( $( "p" ).position().top, $( "p" ).position().left );