Hi...
I wanted to do validation on confirm password using jquery.I did but that is not woking.
I show you my code.Please let me know what the error in this..
$(document).ready(function () {
$(#form1).validate(
{
rules:
{
<%=txtpass.UniqueID %>:
{
required: true,
minlength: 4,
maxlength:10
},
<%=txtRepass.UniqueID %>:
{
required: true,
minlength: 4,
maxlength: 10,
equalto: "#txtpass";
}
},
messages:
{
<%=txtpass.UniqueID >:
{
required: "Minimum 4 characters"
},
<%=txtRepass.UniqueID>:
{
required: "Confirm password does not match given password earlie"
}
}
});
});