JSFiddle - React, Tailwind, and code Playground
by rathoreahsan
HTML
<div id="sidebar">
my text
<div>Some text goes here</div>
<div>something goes here</div>
<div>Another div with no attributes.</div>
</div>
CSS
.myClass {
color:red;
}
JavaScript
$('#sidebar div').not(".something").addClass('myClass');