JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<div class="main">
<div>
<p data-Col="notMyVal"> hkjhkjh</p>
<p data-Col="MyVal"> hkjhkjh</p>
</div>
<div data-Col="MyVAl"> some more text
</div>
</div>
<div class="main">
<div data-Col="myval"> some more text
</div>
</div>
</body>
JavaScript
var searchValue ="myval";
$(".main").find('[data-Col]').filter(function() {
return $(this).attr('data-Col').toLowerCase() == searchValue.toLowerCase();
}).css("background-color","red");