JSFiddle - React, Tailwind, and code Playground
by hamiltonlima
HTML
<div id="1" class="box" width="10" >one </div>
<div id="2" class="box" width="40" >two</div>
<div id="3" class="box" width="10" >three</div>
JavaScript
$(".box").each(function (index) {
console.log( $(this).attr("width") );
w = Number( $(this).attr("width") );
if( w > 10 ){
$(this).remove();
}
});