title: Reset radio button and checkbox value in js
body: <p>I have a set of radio buttons and one of them is checked like this.</p>
  
  <pre><code>&lt;input name="test_data" type="radio" value='1' id="test_data"&gt;
  &lt;input name="test_data" type="radio" value='2' id="test_data" checked="checked"&gt;
  &lt;input name="test_data" type="radio" value='3' id="test_data"&gt;
  &lt;input name="test_data" type="radio" value='4' id="test_data"&gt;
  </code></pre>
  
  <p>I have a link like this</p>
  
  <pre><code>&lt;a href="#" id="resetvalue"&gt;reset value&lt;/a&gt;
  </code></pre>
  
  <p>How can I reset the radio button value when the user clicks on the <code>resetvalue</code> id. I am not using any form.
  If there is a form and button we can easily do for that using reset property.</p>