textbox required equal false
<p>how do I make the textbox that required equal to false in this code  </p>

<pre><code>$(document).ready(function () {
        $("#&lt;%= chkSpecialIntegration.ClientID %&gt;").click(function () {
            if (this.checked) {
               $("#&lt;%= ddlTypeSpecialIntegration.ClientID %&gt;").show();

                document.getElementById('&lt;%=txtTotalScoreDebit.ClientID %&gt;').Required = false; }
else{
 $("#&lt;%= ddlTypeSpecialIntegration.ClientID %&gt;").hide();
 document.getElementById('&lt;%=txtTotalScoreDebit.ClientID %&gt;').Required = true;
}

        });
    });
</code></pre>
