Problem in enabling/disabling checkbox using javascript
<p>My problem is enabling a checkbox in javascript but in disabling my codes is running properly.. i already to change chk1.enabled = checked but its not working..</p>

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

<pre><code>&lt;script language="javascript" type="text/javascript"&gt;

    function ckGrp(){

    var ck_arr = document.getElementsByName('chkRaps');
    var ck = document.getElementsByName('chkPPS');
    if(ck.checked == true){
           ck_arr.disabled = true;
    }else{
          ck_arr.disabled = false;
            }

    }

   &lt;/script&gt;
</code></pre>

<p>asp.net code:</p>

<pre><code>&lt;td&gt;&lt;asp:CheckBox OnClick="ckGrp(); " ID="chkPPS" runat="server" /&gt; &amp;nbsp;&lt;asp:Label ID="Label2" 
        runat="server" Text="Bill Under PPS"&gt;&lt;/asp:Label&gt;


  &lt;td&gt;&lt;asp:CheckBox ID="chkRaps" runat="server" ClientIDMode="Static" Enabled="False" /&gt; &amp;nbsp;&lt;asp:Label ID="Label3" 
        runat="server" Text="Include first billable visit for RAPs"&gt;&lt;/asp:Label&gt;&lt;br/&gt;
        &lt;asp:CheckBox ID="chkTarNumber" runat="server" ClientIDMode="Static" Enabled="False"/&gt; &amp;nbsp;&lt;asp:Label ID="Label4" 
        runat="server" Text="Use Claim Oasis Matching Key as TAR Number"&gt;&lt;/asp:Label&gt;&lt;br/&gt;
        &lt;asp:CheckBox ID="chkPPSMedthod" runat="server" ClientIDMode="Static" Enabled="False" /&gt; &amp;nbsp;&lt;asp:Label ID="Label5" 
        runat="server" Text="Effective 01/01/08 use new PPS Payment Method"&gt;&lt;/asp:Label&gt;&lt;br/&gt;
        &lt;asp:CheckBox ID="chkMTP" runat="server" ClientIDMode="Static" Enabled="False" /&gt; &amp;nbsp;&lt;asp:Label ID="Label6" 
        runat="server" Text="Auto Adjust Claim Amount to Match Total Payment"&gt;&lt;/asp:Label&gt;&lt;br/&gt;
        for differences within +/-&lt;asp:TextBox ID="txtMTP" runat="server" Enabled="False"&gt;&lt;/asp:TextBox&gt;
</code></pre>
