JSFiddle - React, Tailwind, and code Playground
by Rajaprabhu Aravindasamy
HTML
<section class="imagesec" img-width="400px">
<button>click me</button>
<img src="xyx.jpg"> <!-- image actual width = 400px -->
<hr>
</section>
<section class="imagesec" img-width="300px">
<button>click me</button>
<img src="abc.jpg"> <!-- image actual width = 300px -->
<hr>
</section>
JavaScript
$('section.imagesec[img-width]').filter(function(){
return (parseInt($(this).attr('img-width'),10) < 350);
}).hide();