JSFiddle - React, Tailwind, and code Playground
by Akram kamal
HTML
<input type="text" disabled="disabled" /><input type="checkbox" />
JavaScript
$(':checkbox').click(function() {
$('input:text').attr('disabled',! this.checked)
});
by Akram kamal
<input type="text" disabled="disabled" /><input type="checkbox" />
$(':checkbox').click(function() {
$('input:text').attr('disabled',! this.checked)
});