radio button list checked event not firing after unchecked using javascript
<p>I have a checkmark that when the user clicked on it if it's checked then a radiobuttonlist is visible. When the checkmark is unchecked the radiobuttonlist is not visible. What I want to do is, when the checkmark gets unchecked if any item of the radiobuttonlist is checked I want to uncheck it, so if the user set the checkmark to checked again I want the radiobuttonlist to be visible but with all the items unchecked.</p>

<p>This is wat I did using JavaScript:</p>

<pre><code>elementRef = document.getElementById('&lt;%= rowFlightClass.ClientID %&gt;');
            clearList(elementRef)
function clearList(elementRef) {
        var inputElementArray = elementRef.getElementsByTagName('input');
        for (var i = 0; i &lt; inputElementArray.length; i++) {
            var inputElement = inputElementArray[i];
            inputElement.checked = false;   

        }

}
</code></pre>

<p>but the radio buttons are not completely cleared, they are checked in memory, it seems.</p>

<p>With this code it looks like they are cleared but if you click on the previously selected radiobutton selected it's not firing the selectedindexchange event.</p>
