Weird, real weird.
I have some Jquery Validation statements that still allow a post back despite the conditions of that Validation not being met. Here are my statements…
$("#temp1").validate({
rules: {
HospitalFinNumber: {
required: true,
minlength: 6
},
DateOfBirth: {
required: true
},
AdmitDate: {
required: true
},
Comment: {
required: function (element) {
return $(element).val().length < 4000;
}
}
},
messages: {
HospitalFinNumber: 'Please Enter a Hospital Fin number',
DateOfBirth: 'Please enter a valid Date Of Birth',
AdmitDate: 'Please select an Admit Date',
Comment: 'Why dont you stop attempting to put in more than 4000 characters? Thanks...'
});
});
I could have sworn that they were working before
This is the answer to my question…
https://stackoverflow.com/a/9197441/729820