JSFiddle - React, Tailwind, and code Playground

by deligeli

HTML

<input type="checkbox" id="check1" value="value" />
<label for="chk">Checkbox 1</label>

<input type="checkbox" id="check2" value="value" />
<label for="chk">Checkbox 2 </label>

CSS

.selected { background:red; }

JavaScript

$(document).ready(function() {
	 $("#check1").change(arrangeWindow);
   $("#check2").click(function(){
   $("#check1").prop("checked", this.checked);
   });
});

function arrangeWindow() {
	console.log("Missing my baby");
}