JSFiddle - React, Tailwind, and code Playground

HTML

<form id="32">
<label><input type="checkbox" id="1-5" name="1" value="1">"1"</label>
<label><input type="checkbox" id="2-5" name="2" value="2">"2"</label>
</form>

JavaScript

var checkbox1 = $('#1-5');
var checkbox2 = $('#2-5');
checkbox1.click(function(){
	console.log("click1");
	if (checkbox1.is(':checked')) {
        checkbox2.attr("disabled", true);
    }
    else {
    	checkbox2.attr("disabled", false);
    }
})