title: How to set unchecked checkbox 1 When checkbox 2 was checked and set unchecked checkbox 2 When checkbox 1 was checked using script?
body: <p>How to  set unchecked checkbox 1 When checkbox 2 was checked and set unchecked checkbox 2 When checkbox 1 was checked</p>
  
  <p>( Make checkbox working like radio button. )</p>
  
  <pre><code>&lt;input type="checkbox" id="checkbox1" name="checkbox1" value="checkbox1"/&gt; checkbox 1 
  &lt;br&gt;
  &lt;input type="checkbox" id="checkbox2" name="checkbox2" value="checkbox2"/&gt; checkbox2
  
  &lt;script type="text/javascript"&gt;
  document.getElementById('checkbox1').onchange = function() {
      document.getElementById('checkbox2').Unchecked = this.checked;
  
  };
  &lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  document.getElementById('checkbox2').onchange = function() {
      document.getElementById('checkbox1').Unchecked = this.checked;
  
  };
  &lt;/script&gt;
  </code></pre>