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