JSFiddle - React, Tailwind, and code Playground
HTML
<div id="one">Foo one</div>
<div id="two">Foo two</div>
<br>
<div id="three">Foo three</div>
<div id="four">Foo four</div>
<br>
<div id="five">Foo five</div>
<div id="six">Foo six</div>
<div id="anam">ansari</div>
CSS
div {
width: 50px;
height: 50px;
background-color: black;
color: white;
position:absolute;
top:300px;
left:100px;
}
JavaScript
$('*').filter(function () {
if ($(this).position().left === 100 && $(this).position().top === 300) return true
else return false;
}).each(function () {
console.log($(this).attr('id'));
})