JSFiddle - React, Tailwind, and code Playground

by Satpal Singh

HTML

<input type="text" id="myTextBox" name="" value="" readonly="readonly"/><br/>
    <input type="submit" id="myButton"  name="" value="update" />

JavaScript

document.getElementById('myButton').onclick = function() {
       document.getElementById('myTextBox').readOnly =false;
    };