JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" value="firstName" disabled="true" />
<button id="chProp">
Change Prop
</button>
JavaScript
$("#chProp").on('click', function(){
$("input").prop("disabled",false);
});
<input type="text" value="firstName" disabled="true" />
<button id="chProp">
Change Prop
</button>
$("#chProp").on('click', function(){
$("input").prop("disabled",false);
});