JSFiddle - React, Tailwind, and code Playground
HTML
Disable all checkbox:
<input type="checkbox" class="check" >
<input type="checkbox" class="check">
<input type="checkbox" class="check">
<input type="checkbox" class="check">
<input type="checkbox" class="check">
<input type="checkbox" class="check">
<input type="checkbox" class="check">
<br/>
Disable all checkbox(except selected one):
JavaScript
$('.check').attr('disabled','disabled');