title: How to Find selected item from radiobutton list using javascript
body: <p>I need to find selected item from radiobutton list using javascript...
  Here is my code</p>
  
  <pre><code>  &lt;asp:RadioButtonList name="test" ID="RadioButtonList1"  runat="server"&gt;
      &lt;asp:ListItem Text="List1" Value="1"&gt;&lt;/asp:ListItem&gt;
      &lt;asp:ListItem Text="List2" Value="3"&gt;&lt;/asp:ListItem&gt;
      &lt;/asp:RadioButtonList&gt;
      &lt;asp:Button Text="test" runat="server" OnClientClick=" GetListItem()" /&gt;
  </code></pre>
  
  <p>script:</p>
  
  <pre><code>&lt;script type="text/javascript" language="javascript"&gt;
  function GetListItem() {
      var id = document.getElementById("&lt;%=RadioButtonList1.ClientID%&gt;");
      alert(id.selectedItem.value())//Error: 'selectedItem' is null or not an object;
  }
  </code></pre>
  
  <p></p>
  
  <p>How can i find selectedItem from that list</p>