title: How to automatically uncheck a checkbox with javascript if other is already checked?
body: <p>How to automatically uncheck a checkbox with javascript if a user checks another one? I have this script:</p>
  
  <pre><code>&lt;input type="checkbox" name="use_ssh" value="yes"&gt;SSH
  &lt;input type="checkbox" name="use_vpn" value="yes"&gt;VPN
  </code></pre>
  
  <p>if a user checks <code>SSH</code> but he also tries to check <code>VPN</code> then a javascript code will automatically uncheck <code>SSH</code> and leave <code>VPN</code> checked and the otherwise. How can I do that with javascript? Basically I just want one checkbox checked instead of two. Please don't ask me why I use checkbox instead of other methods, I will have to rewrite the whole script if I use other methods and I don't have enough time to do that.</p>