JSFiddle - React, Tailwind, and code Playground

by Malik Naik

HTML

<input id="text-element" type="text">
<input id="submit-element" type="submit">

JavaScript

document.getElementById("text-element").addEventListener("focus", changeSubmit);

function changeSubmit(){
    document.getElementById("submit-element").style.backgroundColor = "blue";
}