function ShowHide(msg, destinatinid) {
var tmpD;
var phc;
var phcDDL;
tmpD = document.getElementById(destinatinid);
if (msg == ‘No’)
tmpD.style.display = “none”;
if (msg == ‘Yes’)
tmpD.style.display = “”;
}
Adding this function to onclick java script function in C#
this.rbCAPNo.Attributes.Add(“onclick”, “ShowHide(‘No’, ‘” + tbCAPDetails.ClientID + “‘)”);
this.rbCAPYes.Attributes.Add(“onclick”, “ShowHide(‘Yes’, ‘” + tbCAPDetails.ClientID + “‘)”);