JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" name="one" /> one

<select name="two" class="select">
    <option value="opt1">opt1</option>
    <option value="opt2">opt2</option>
</select>

<button class="reset">reset</button>

JavaScript

$(function () {
    function f1() {
        if (this.checked) {
            $('select[name=two]').removeAttr('disabled');
        } else {
            $('select[name=two]').attr('disabled', true);
        }
    }
    $('input[name=one]').change(f1).triggerHandler('change');
    $('.reset').click(function () {
        $('input[name=one]').removeAttr('checked').end().click(f1);
    })
});