Morning, I wanna call the label when a function onkeyup return false, for example. I set jquery validator, and i set a rule clled
e-mail: {
email:true,
required:true
}
but I have another function that validate the email and return false if it is not correct and true if the opposite.
function emailvalidate(email_string){
[regex test emailstring]
return true or false //(and show label of jqueryvalidator)
}
now, when I write an invalid email Jquery validator shows a label saying email wrong but I need also that on keyup or on focus other field it will test the email form value with my function emailvalidate() and if it returns false it will show the message of the jquery validator plugin.
sth like
$("#email-field").on("keyup",emailvalidate($("#email-field").val()))