JSFiddle - React, Tailwind, and code Playground
HTML
<label for="the_id">Label text</label>
<input type="checkbox" name="the_name" id="the_id" />
<br>
<label for="the_id2">Label text</label>
<input type="checkbox" name="the_name" id="the_id2" />
JavaScript
$("#the_id").prop('disabled', true);
$('label[for=the_id]').css({backgroundColor:'#fcc'});