JSFiddle - React, Tailwind, and code Playground
HTML
<table id='myForm1'>
<tr> <td> <input type='checkbox' name='check1' value = '79' onchange='updateOthers(this);'>Q- 79. Currency of japan </td> </tr>
<tr> <td> <input type='checkbox' name='check1' value = '80' onchange='updateOthers(this);'>Q- 80. Statute of Liberty is in ? </td> </tr>
<tr> <td> <input type='checkbox' name='check1' value = '64' onchange='updateOthers(this);'>Q- 64. National Animal ? </td> </tr>
<tr> <td> <input type='checkbox' name='check1' value = '65' onchange='updateOthers(this);'>Q- 65. Popular language </td> </tr>
<tr> <td> <input type='checkbox' name='check1' value = '63' onchange='updateOthers(this);'>Q- 63. Largest Ocean ? </td> </tr>
<tr><td> <input type="submit" name="edit" style="height: 20px;width: 250px" formmethod='post' formaction='/~xyz/cgi-bin/Project/CheckEdit.py' value="Edit" onclick="return(isUncheck())"></td></tr><br>
</table>
<script>
function updateOthers(target){
var chk = document.getElementsByTagName('input');
for(var i=0; i < chk.length; i++) {
if(chk[i].type == 'checkbox') {
if(chk[i] != target) {
chk[i].checked = true;
}
}
}
}
</script>