Click here to Skip to main content
15,877,966 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have an issue:
i am validationg webparts and application pages for sharepoint using jquery validate()

the jquery validation works fine and checks all the rules and displaying messages as well,but the issue is that:

if the rules are fine the submit button works and submits data as many times as the validation never fails but once the validation fails for any reason such required field, the user corrects the error and try to submit the data again but the button no more is submitting even if the validation is corrected

$("#form1").validate({

        rules: {  <%=TextBox1.UniqueID%>:{ required: true },  <%=TextBox2.UniqueID%>: { required: true} },
        messages: {
             <%=TextBox1.UniqueID%>: { required: "<span  style='color:black'>* Required Field *</span>" },

             <%=TextBox2.UniqueID%>: { required: "<span  style='color:red'>* Required Field *</span>" }
        },
        errorLabelContainer: "#errorcontainer",
        wrapper: 'li'

    });


Note: The exact same code is working fine in asp.net normal and master pages
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900