I need to compare the fields as the script below:
$("#send_request").submit(function(event){
var password = '7c4a8d09ca3762af61e59520943dc26494f8941b';
if($('#userpassword').val()!=password){
alert('senha invalida');
}
event.preventDefault();
});
Only the userpassword
password for this field will come unencrypted, so I'll have to encrypt before comparing. But the form passes straight, neither compares and does not give at all. How should I do it?