title: How to change the value of radio buttons using Javascript/Jquery
body: <p>Say I have this radio:</p>
  
  <pre><code>&lt;form name="myForm"&gt;
    &lt;input type="radio" name="foo" value="1"&gt; 1
    &lt;input type="radio" name="foo" value="2"&gt; 2
  &lt;/form&gt;
  </code></pre>
  
  <p>I'm looking for a way to do something like this:</p>
  
  <pre><code>document.myForm.foo.value = "2";
  </code></pre>
  
  <p>In order to dynamically select the 2nd radio button. Or a way to do the following using jquery. </p>