title: Activate radio buttons using checkbox conditions
body: <p>Basically i'd like to activate radio buttons using a checkbox as per the conditions given below-</p>
  
  <ol>
  <li><p>If i check the checkbox, the first radio would be checked. If i change to another radio button, the checkbox still checked.</p></li>
  <li><p>If i uncheck the checkbox, I would like to uncheck any radio button. I mean, the radio buttons need to be checked if the checkbox is checked, and if the checkbox is unchecked, the radio buttons need to be unchecked as well.</p></li>
  </ol>
  
  <p>I've tried a bunch of partial solutions, but none of them work correctly. :(</p>
  
  <p>My HTML:</p>
  
  <pre><code>&lt;input name="featured_ad" value="1" type="checkbox"&gt;condition
  &lt;br&gt;&lt;br&gt;
  &lt;input type="radio" name="ad_pack_id" value="497649"&gt;value 1&lt;br&gt;
  &lt;input type="radio" name="ad_pack_id" value="497648"&gt;value 2&lt;br&gt;
  &lt;input type="radio" name="ad_pack_id" value="497647"&gt;value 3&lt;br&gt;
  </code></pre>
  
  <p>Thanks a lot!</p>