jQuery validation is not working in the code I have used to validate the form.
I used PureMVC and in the index.html file the contact.html file loaded from ajax request. If I make a javascript alert on the button click then I can see them but they not make any validation on the click of button
$("#contactUsSubmit").live('click', function() {
$("#contactForm").validate({
errorLabelContainer: $("#contactAlert ul"),
rules: {
contactName: {
required: true,
minlength: 6
}
}
});
});
Do someone know what kind of thing I have done wrong in this code. #contactname is Id of contactName