How to disable checkbox one after another?
<p>I have two checkboxes with different names:</p>

<pre><code>&lt;input type="checkbox" name="checkbox1" value="checkbox1"&gt;
&lt;input type="checkbox" name="checkbox2" value="checkbox2"&gt;
</code></pre>

<p>I'd like to implement code where when checkbox1 is checked, checkbox2 is disabled and when checkbox2 is checked, checkbox1 is disabled. When it's unchecked, it should enable the other back as well.</p>

<p>How can I achieve with jQuery or JavaScript?</p>
