JSFiddle - React, Tailwind, and code Playground

HTML

<div class="checkConfiguration"> <span class="cbStopReason">
            <input id="stopGeneralNumber" type="checkbox" name="stopGeneralNumber" />
            <label for="stopGeneralNumber">General Number</label>
        </span>
    
        <input name="ctl23" type="text" disabled="disabled" class="aspNetDisabled" />
    </div>

JavaScript

$('#stopGeneralNumber').on('change', function () {
        var $this = $(this);
        
        if ($this.is(':checked')) {
            $this.parent().nextAll("input").prop("disabled", false);
        } else {
            $this.parent().nextAll("input").prop("disabled", true);
        }
    });