var x = document.getElementById("testingAjax");
if (x != null) {
var left = x.position().left;
alert(left);
}
why is the above code breaking? It is breaking on var left = x.position().left with the error Object doesn’t support this property or method;
If you are using jQuery, you need to wrap any non jQuery object in $(..). So your code becomes: