JSFiddle - React, Tailwind, and code Playground

HTML

<input id="chk" type="checkbox" disabled />
<label for="chk">Checkbox</label>

JavaScript

$('#chk').click(function () { 
    $('label').css('color', 'blue');
});
$('#chk').prop('disabled', false);
$('#chk').trigger('click')