JSFiddle - React, Tailwind, and code Playground

by Nenad Novakovic

HTML

<input type="text">
<input type="text">

JavaScript

var input = document.getElementsByTagName("input");

for (i = 0, len = input.length; i < len; i++) {
    console.log('this');
    input[i].style.backgroundColor = "#dbb";
    input[i].style.border = "1px solid #d00";
    input[i].setAttribute("class", "test");
    input[i].className = "test_two";
    input[i].id = 'test';
}