JSFiddle - React, Tailwind, and code Playground

by katspaugh

HTML

<input value="hi" />
<input value="hi" />
<input value="bye" class="nothis" />
<input value="hi" />

JavaScript

var inputs = document.querySelectorAll('input:not(.nothis)');


/ * test */
for (var i = 0; i < inputs.length; i++) {
    inputs[i].style.color = 'red';
}