JSFiddle - React, Tailwind, and code Playground

by jessica_mather123

HTML

<input type="text" id="fname" onchange="myFunction()">

JavaScript

function myFunction() {
    var x = document.getElementById("fname");
    x.value() = x.value.toUpperCase();
}