title: How to pass 2 or more arguments from HTML inputs to a Javascript function
body: <p>I have these inputs:</p>
  
  <pre><code>&lt;input type='radio' id='1' name='s' onclick='pieces(this.value);'  value='6'&gt;6
  &lt;input type='radio' id='2' name='s' onclick='pieces(this.value);'  value='12'&gt;12
  &lt;input type='radio' id='3' name='s' onclick='pieces(this.value);'  value='24'&gt;24
  &lt;input type='radio' id='11' name='v' onclick='pieces(this.value);'  value='yes'&gt;Yes
  &lt;input type='radio' id='12' name='v' onclick='pieces(this.value);'  value='no'&gt;No
  </code></pre>
  
  <p>I want to pass the value from "name='s'" to var1, and value from "name='v'" to var2 to the function <code>pieces(var1, var2)</code> when the radio button is clicked.</p>