JSFiddle - React, Tailwind, and code Playground

HTML

<div id="my_element">Looping with ng-repeat:</div>

JavaScript

var a = $("#my_element").offset();
alert(a.top);
alert(a.left);