JSFiddle - React, Tailwind, and code Playground
by guradio
HTML
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="checkbox">
<label>
<input type="checkbox" name="checkbox" id="checkbox"> Remember me
</label>
</div>
</div>
JavaScript
$(document).ready(function() {
$("#checkbox").change(function() {
if ($(this).is(':checked')) {
$(this).prop('disabled', true)
}
});
});