JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" value="MG" id="mg"/>
JavaScript
window.addEvent('domready', function(){
alert('hi');
$('mg').setAttribute('disabled','true');
alert('bye');
$('mg').setAttribute('disabled','');
})