title: Check/Uncheck boxes when another is clicked in javascript
body: <p>Trying to clear 2 check boxes when another is clicked. I've searched for this answer and have tried using information from the examples but for some reason nothing I try works.  Here is the code I am currently using.</p>
  
  <pre><code>function control()
  {
  /*var one = document.getElementById('one');
  var two = document.getElementById('two');
  var three = document.getElementById('three');*/
  
  if(document.forms[0].one.checked == true)
  {
      document.forms[0].two.checked == false;
      document.forms[0].three.checked == false;
  }
  
  if(document.forms[0].two.checked == true)
  {
      document.forms[0].three.checked == false;
      document.forms[0].one.checked == false;
  }
  
  if(document.forms[0].three.checked == true)
  {
      document.forms[0].one.checked == false;
      docuemnt.forms[0].two.checked == false;
  }
  }
  &lt;/SCRIPT&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form action="" method="POST" name="getArea"&gt;
  &lt;input type="checkbox" onClick="control()" name="one"&gt;Standard Shipping&lt;br /&gt;
  &lt;input type="checkbox" onClick="control()" name="two"&gt;Overnight Shipping&lt;br /&gt;
  &lt;input type="checkbox" onClick="control()" name="three"&gt;Priority Shipping&lt;br /&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>