title: Getting the value from a radio button using javascript
body: <p>I have a HTML form with radio inputs and want to use javascript to analyse the results.
  I am getting stuck at retrieving the form information in my JavaScript function:</p>
  
  <pre><code>function getResults(formInput){
      alert (formInput.question1);
  }
  </code></pre>
  
  <p>Where question1 is the "name" of my radio button group.</p>
  
  <p>This returns "object Nodelist" and I haven't a clue what's wrong, I would expect it to return "1", which is the value of my radio button when selected.</p>
  
  <p>I don't want to work out which radio button is selected and which isn't, I need to know the value associated with the selected radio button.</p>