JSFiddle - React, Tailwind, and code Playground
by abhitalks
HTML
<input type="text" name="x" value="22" disabled/>
<a href="#">change</a>
JavaScript
$('a').on('click',function(){
var $inp = $(this).siblings('input');
$inp.prop('disabled', !$inp.prop('disabled'));
});