JSFiddle - React, Tailwind, and code Playground
by Emerson Marini
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" class="aspNetDisabled" disabled="disabled" />
</div>
JavaScript
$(function () {
$('.checkConfiguration input[type=checkbox]').on('click', function () {
$(this).closest('.checkConfiguration').find('input[type=text]').prop('disabled', !$(this).is(':checked'));
});
});