offset question
offset question
var p = $( "p:last" );
var offset = p.offset();
p.html( "left: " + offset.left + ", top: " + offset.top );
the above code works just fine , but why is it that when i change the last line to
p.html("left: " + offset.right + ", top: " + offset.top );
i get the following output
left: undefined, top: 52
WHY UNDEFINED , can somebody explain ? Thank u :D
Topic Participants
gautamx07
dsvick