JSFiddle - React, Tailwind, and code Playground

by Michel Penke

HTML

<input type="text" id="txt" onkeyup="return forceLower(this);"/>

CSS

#txt {
    
}

JavaScript

function forceLower(strInput) 
{
strInput.value=strInput.value.toLowerCase();
}