radio button check in java script
<p>this is my radio button , i want to get the value from the list through alert when i click the submit button , but value is not coming</p>

<p><code>&lt;asp:RadioButtonList ID="Titlerbl" runat="server" CssClass="tit" 
                        RepeatDirection="Horizontal" ValidationGroup="grt"&gt;
                        &lt;asp:ListItem&gt;MR&lt;/asp:ListItem&gt;&lt;asp:ListItem&gt;MS&lt;/asp:ListItem&gt;
                        &lt;asp:ListItem&gt;DR&lt;/asp:ListItem&gt;
                    &lt;/asp:RadioButtonList&gt;</code></p>

<p>this is the java script </p>

<pre><code>var radio = document.getElementById("Titlerbl").value;
 for (var j = 0; j &lt; radio.length; j++)
 {
        if (radio[j].checked)
            alert(radio[j].value);
 }
</code></pre>
