Try this way
rules:{
pwd:{
required:true //First email section
},
pwd1:{
required:true,//Second email section
equalTo: "#same" //Use id of the first email text box here
}
},
messages:{
pwd1:{
equalTo: "Must be same as above email"
}
}
solved Email Validation using JQuery (emails matching) [closed]