JSFiddle - React, Tailwind, and code Playground

HTML

<div class="class1" style="left:200px">this is div 1</div>

<div class="class1" style="left:240px">this is div 1</div>
<div class="class1" style="left:210px">this is div 1</div>

JavaScript

var divWithTopLeft = null;
var maxLeft = 0;
$('div').each(function(){
    left = this.style.left.replace('px','');
    if(left > maxLeft )
    {
         maxLeft = left;
         divWithTopLeft = this;
    }   
});
alert(divWithTopLeft.style.left);