JSFiddle - React, Tailwind, and code Playground

HTML

<div class="product"></div>
    
    <div class="otherProd"></div>

CSS

div{
    
  
    width:100px;
    height:100px;
   
}
.product{
    background:red;
     position:absolute;
    left:10px;
}
.otherProd{
    top:100px;
    background:green;
    position:absolute;
}

JavaScript

if ($('.product').css('left') == '10px') {
    alert($('.product').css('left'))
    $('.otherProd').css( "left", "10px", 'important');
}