I wanna display an error message in a forget password section and in the given link Account
I tried this code in terms of a solution but could not be able display error msg.
$(document).ready(function(){
$('#customer_password'). on('focusout' ,function(){
if($('#customer_password').value() != ""){
} else {
$('#customer_password').text('Password Required... !!');
$('#customer_password').fadeIn('slow');
}
}
});
function validatePassword(pVal) {
var val= /^[A-Za-z]\w{7,14}$/;
if(val.test(pVal)) {
alert('Correct, try another...')
return true;
}
else{
alert('Wrong...!')
return false;
}
}