Enabling/disabling asp.net checkboxes through javascript
<p>Enabling and disabling checkboxes through javascript for example when I check chk1 and then chk2, chk3 and chk4 will be enabled and if I uncheck chk1 then chk2, chk3 and chk4 will be disabled through javascript?</p>

<p>here's my code:</p>

<pre><code>&lt;script type="text/javascript"&gt;
$('chkTAR').clicked(function(){
        {
        if($('chkTAR :checked').length == 2)

        $('chkOasis, chkPOT').disabled = true;
        else
        $('chkOasis, chkPOT').disabled = false
        });
&lt;/script&gt;
</code></pre>
