JSFiddle - React, Tailwind, and code Playground

by Speednet

HTML

<div id="result" style="height:500px">&nbsp;</div>
<a id="test"></a>

JavaScript

$("#result").text($("#test").offset().top);