title: passing HTML radio button value to a javascript variable
body: <p>I wonder if anyone can help me out, I'm stuck where I need to write a little code that goes like this.</p>
  
  <pre><code>Question : did you like the training?
  
  &lt;input type="radio" name="q4" value="Yes"&gt;Yes
  &lt;input type="radio" name="q4" value="No"&gt;No
  </code></pre>
  
  <p>whatever is checked I want to pass it to a javascript variable.</p>