title: How can I determine the SelectedValue of a RadioButtonList in JavaScript?
body: <p>I have an ASP.NET web page with a databound RadioButtonList.  I do not know how many radio buttons will be rendered at design time.  I need to determine the SelectedValue on the client via JavaScript.  I've tried the following without much luck:</p>
  
  <pre><code>var reasonCode = document.getElementById("RadioButtonList1");
  var answer = reasonCode.SelectedValue;  
  </code></pre>
  
  <p>("answer" is being returned as "undefined")
  Please forgive my JavaScript ignorance, but what am I doing wrong?  </p>
  
  <p>Thanks in advance.</p>