Hi
I'm wiriting a custom validation javascript function
and it returns the error
What I'm doing wrong?
Thanks for your help
I'm wiriting a custom validation javascript function
function nomeCheck(el){
try{
if ( el.val()=="a" ) {
el.error.push("Error message here");
return false;
} else {
return true;
}
} catch(e){
alert(e);
}
}
and it returns the error
TypeError: el.error.push is not a function
What I'm doing wrong?
Thanks for your help
This topic is locked and no more replies can be posted.