JSFiddle - React, Tailwind, and code Playground
by Sethu raman
HTML
<input type="checkbox" id="manual" onclick="checkNext(this);">
<input type="checkbox" id="patient" onclick="updateCheck(this);">
JavaScript
function updateCheck(sender)
{
if(!$(sender).prev('#manual').prop('checked'))
$(sender).attr("checked",true);
else
$(sender).attr("checked",false);
}
function checkNext(sender)
{
$(sender).next('#patient').attr("checked",false);
}