JSFiddle - React, Tailwind, and code Playground

by Brodingo

HTML

<input type=checkbox checked=checked id=one>
<input type=checkbox id=two>

JavaScript

if ($('#one').is(':checked')){
    $('#two').prop('checked', true);
}