I have a couple of checkboxes in a popup. When I check on one of them, if you attempt to check on another one, it will uncheck the one you just checked. There are just two boxes. I tried the following and this line: cbbizperc.checked = false; doesn't seem to work. Can someone possibly offer a suggestion?
<script type="text/javascript">
function cborbizpercent() {
var cbselfemp = document.getElementById('<%=cbcborselfemp.ClientID%>');
var cbbizperc = document.getElementById('<%=cbcboremprelatedparty.ClientID%>');
if (cbselfemp.checked == true) {
var rb = document.getElementById("<%= rblcborownership25.ClientID %>");
var radio = rb.getElementsByTagName("input");
var label = rb.getElementsByTagName("label");
for (var i = 0; i < radio.length; i++) {
(radio[i].disabled) = false;
}
if (cbbizperc.checked == true) {
cbbizperc.checked = false;
//document.getElementById('<%=cbcboremprelatedparty.ClientID%>').checked = false;
}
} else {
var rb = document.getElementById("<%= rblcborownership25.ClientID %>");
var radio = rb.getElementsByTagName("input");
var label = rb.getElementsByTagName("label");
for (var i = 0; i < radio.length; i++) {
(radio[i].disabled) = true;
(radio[i]).checked = false;
}
}
}
</script>