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)
});