JSFiddle - React, Tailwind, and code Playground

by Artem

HTML

<form action="" name="foo">
  <input type="text">
  <input type="password">
  <input type="text">
  <input type="text">
</form>

JavaScript

// Q: select all input fields that have type equals to "text"
var inputs = document.getElementsByTagName('input'); // answer