textbox required equal false

Posted by Donato bruno comunali F. dutra on Stack Overflow See other posts from Stack Overflow or by Donato bruno comunali F. dutra
Published on 2010-12-28T10:45:33Z Indexed on 2010/12/28 10:54 UTC
Read the original article Hit count: 206

Filed under:
|

how do I make the textbox that required equal to false in this code

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

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

        });
    });

© Stack Overflow or respective owner

Related posts about c#

Related posts about JavaScript