title: how to get all radio button value by name
body: <p>Like the title say i want to get all the radio button value that using the same name. here is the html code</p>
  
  <pre><code>&lt;input type="radio" id="choice-yes-1" name="choice[0]" value="Yes" /&gt; Yes &lt;br/&gt;
  &lt;input type="radio" id="choice-no-1" name="choice[0]" value="No" /&gt; No &lt;br /&gt;
  &lt;input type="radio" id="choice-yes-2" name="choice[1]" value="Yes" /&gt; Yes &lt;br /&gt;
  &lt;input type="radio" id="choice-no-2" name="choice[1]" value="No" /&gt; No &lt;br /&gt;
  </code></pre>
  
  <p>i want the javascript kinda like this</p>
  
  <pre><code>ctr = 0;
  for (i=0;i&lt;2;i++){
      if(document.getElementsByName("choice")[i].value == "Yes"){
          ctr++;
      }
  }
  console.log(ctr);
  </code></pre>
  
  <p>i want some javascript that kinda resulting how many the yes choice.</p>