JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" class="checkbox" />

<select type="select" class="selectbox" disabled="disabled">
    <option>0</option>
    <option>1</option>
</select>

JavaScript

jQuery(function($) {
    $('.checkbox').click(function(){
        updateInputs();
    })
})
function updateInputs(){
    if (jQuery('.checkbox').is(':checked')){
        jQuery(".selectbox").removeProp('disabled');
        alert(1)
    }else{
        jQuery(".selectbox").prop('disabled','disabled');
        alert(0)
    }
}