undefined output!! am i missing sth ? any idea ?
here is the radio button inputs :
  <tr> 
   <td>Yes <input type="radio" name="email"  id="email" value="yes"/></td> 
   <td></td> 
   <td>No <input type="radio" name="email" id="email" value="no"checked="checked"/></td> 
  </tr>
 <input type="button" value="submit" onclick="doIt()" style="width: 150px; height:30px" />
    <script type="text/javascript" language="javascript">
       function doIt() {
          var emailopt = document.getElementById('email').checked.value;
        alert (emailopt);
    }
 
     
    