Hi,
$('#btnSiteSave').click(function (e) {
var password=$('input[id$=password]').val();
var confirmpassword=$('input[id$=cpassword]').val();
if(password!=confirmpassword)
{
$("#cpassword").rules("add", {
compare:true,
messages: {
}
});
}
});
while click on save button i need to compare the password and confirm password.
this is the coding am tried but am not getting the output..
Pls help me to solve this.