onclick="RadionButtonOnClick();"
function RadionButtonOnClick() {
var elementId = '<%=rblPatientGender.ClientID%>';
var elementRef = document.getElementById(elementId);
var checkBoxArray = elementRef.getElementsByTagName('input');
var checkedValue = "";
var isChecked = false;
for (var i = 0; i < checkBoxArray.length; i++) {
if (document.getElementById(elementId + "_" + i.toString()).checked == true) {
var checkBoxRef = checkBoxArray[i].value;
if (checkBoxRef == "1") {
document.getElementById('Test').style.visibility = 'visible';
document.getElementById('Test').style.visibility = 'visible';
Chekced = false;
break;
}
else {
document.getElementById('Test').style.visibility = 'hidden';
document.getElementById('Test').style.visibility = 'hidden';
}
}
}
}
function RadionButtonOnClick() {
var elementId = '<%=rblPatientGender.ClientID%>';
var elementRef = document.getElementById(elementId);
var checkBoxArray = elementRef.getElementsByTagName('input');
var checkedValue = "";
var isChecked = false;
for (var i = 0; i < checkBoxArray.length; i++) {
if (document.getElementById(elementId + "_" + i.toString()).checked == true) {
var checkBoxRef = checkBoxArray[i].value;
if (checkBoxRef == "1") {
document.getElementById('Test').style.visibility = 'visible';
document.getElementById('Test').style.visibility = 'visible';
Chekced = false;
break;
}
else {
document.getElementById('Test').style.visibility = 'hidden';
document.getElementById('Test').style.visibility = 'hidden';
}
}
}
}
No comments:
Post a Comment