JSFiddle - React, Tailwind, and code Playground
by adamzr
HTML
<input type="checkbox" id="one"></input>
<input type="checkbox" id="one"></input>
<input type="checkbox" id="one"></input>
<div style="display: none;">At least 2 are checked</div>
JavaScript
$('input[type=checkbox]').change(function(){
alert($('input:checked').size())
if($('input:checked').size() > 1){
$("div").show();
}
else {
$('div').hide()
}
})