[jQuery] position of element
I'm trying to get the position of all div-elements with a given class
("point") with this code:
$(".point").each(
function() {
var pos = this.position();
alert(pos.left)
}
)
This is the error I get on the "var pos..." line:
Microsoft JScript runtime error: Object doesn't support this property
or method
Can anyone tell me what i'm doing wrong?