JSFiddle - React, Tailwind, and code Playground

by Tom DeBerardine

HTML

<input id="enable" type="checkbox" /> Enable
<br/>
<select id="type_select" disabled="true">
    <option value="">Please select...</option>    
    <option value="1">Something 1</option>
</select>

JavaScript

var $checkbox = $('#enable'),
    $select = $('#type_select');

$checkbox.change(function(e) {
  $select.prop('disabled', !$checkbox.is(':checked'))
});