title: when radio button is selected, a popup box should display the text of the radio button
body: <p>I have 3 radio buttons : Red, Blue and green 
  When I select one of the three radio buttons, a popup box (alert) should appear and should display the text of the selected radio button (example : Blue). Can anyone please provide the javascript code for the it.
  Thank You</p>
  
  <p>Sorry about that, Here's what I tried regarding the javascript code:</p>
  
  <pre><code>function radioEvent (radio) 
  {
  var dom = document.getElementById("myForm");
    for (var index = 0; index &lt; dom.radioButton.length;index++) 
    {
      if (dom.radioButton[index].checked) 
      {
        radio = dom.radioButton[index].value;
      }
    }
  }
  
  
  &lt;td rowspan = "2" &gt;
  &lt;input type="radio" name= "radioButton" value= "radio1"&gt; Excellent&lt;br&gt;
  &lt;input type="radio" name="radioButton"  value="radio2" &gt; Very Good &lt;br&gt;
  &lt;input type="radio" name="radioButton"  value="radio3" &gt; Good &lt;br&gt;
  &lt;input type="radio" name="radioButton"  value="radio4" &gt; Satisfactory
          &lt;/td&gt;
  </code></pre>
  
  <p>My question is What to do next? I am confused...</p>