JSFiddle - React, Tailwind, and code Playground

by Philippe Xantus

HTML

<h3>
Enter your vehicule Make.
</h3>
<input type="text" name="fname" id='carmake'>
<br>
<div id='action'onclick='carMakes()'>Find</div>

JavaScript

var button = document.getElementById("action");
button.onclick = function carMakes() {
   var car= document.getElementById(carmake);
   console.log(car);
}