JSFiddle - React, Tailwind, and code Playground

by Gerald Gillespie

HTML

<input type="text" id="textbox" />

<a href="#" id="enable">Enable</a>
<a href="#" id="disable">Disable</a>

JavaScript

$('#enable').click(function() {
   document.getElementById('textbox')
        .removeAttribute('disabled');  
   return false;  
});

$('#disable').click(function() {
   document.getElementById('textbox')
        .setAttribute('disabled', );  
   return false; 
});