How to disable a radiobuttonlist using Java Script in Asp.net?
<p>I have created a web form in which I have take certain fields like Name, Age and two radio button list (Required and ID). I want to enable disable certain fields on the value of one radiobutton list "Required". The "Required" Radiobuttonlist has two items, "YES", "NO". If I select yes, then certain fields should get enabled disabled and vice versa.</p>

<p>I am able to disable the texboxes, however I am not able to disable a radiobutton list "ID" which has to list items in it as taxId and PAN. I have used the following code for it</p>

<pre><code>function EnableDisableID() {

        if (document.getElementById("&lt;%=rdID.ClientID %&gt;") != null) {

            var IDList = document.getElementById('&lt;%= rdID.ClientID  %&gt;');


            var isOpenID;

            if (IDList != null) {

                var openSubID = IDList.getElementsByTagName("input");

                for (var i = 0; i &lt; openSubID.length; i++) {

                    if (openSubID[i].checked) {

                        openSubID = openSubID[i].value;
                     }
                }
            }
            if (openSubID == 'true') {                    
                document.getElementById('&lt;%=fbo1RadioButtonList.ClientID %&gt;').disabled = false;
                document.getElementById('&lt;%=txtFbo1TaxId.ClientID %&gt;').disabled = false;

            }
            if (isOpenSubAccount == 'false') {

                alert("Printing..." + isOpenSubAccount);
                document.getElementById('&lt;%=fbo1RadioButtonList.ClientID %&gt;').disabled = true;
                document.getElementById('&lt;%=txtFbo1TaxId.ClientID %&gt;').disabled = true;
            }
        }
    }
</code></pre>

<p>I am able to disable the FBO1TaxId, however, I am not able to disable the radiobutton list "fbo1RadioButtonList". How will I achieve it. do I have to treat its value individually? </p>
