JSFiddle - React, Tailwind, and code Playground

by szivak009

HTML

<html>
    <head></head>
    
    <body>
        
        <input type="checkbox" id="chk1" /><label for="locked">Checkbox</label>

        
    </body>
    
</html>

JavaScript

$(document).ready(function() {

    var chk1 = $('#chk1');    
    console.log('chk1');
    chk1.attr('checked', 'checked');

}):