title: Getting input value of a radio button in a group without loop
body: <p>I need to obtain which radio button is checked using plain javascript ( No JQuery ) without looping through each input elements and checking for 'checked' attribute for each.</p>
  
  <p>PS : Jquery solution would also be appreciated :)</p>
  
  <p>Given HTML :</p>
  
  <pre><code>      &lt;tr id = "reportLayout"&gt;
           &lt;th align="left" style="padding-right: 10px"&gt;Layout&lt;/th&gt;
              &lt;td&gt;
               &lt;input type="radio" name="layout" value="portrait"&gt;Portrait&lt;/input&gt;                                                            
               &lt;input type="radio" name="layout" value="landscape"&gt;Landscape&lt;/input&gt;
              &lt;/td&gt;
        &lt;/tr&gt;
  </code></pre>