Hi,
I have a form with a custom rule in a input:
This is the event of the button:
form.attachEvent(“onButtonClick”, function(b){
switch(b){
case “submit”:
form.validate();
break;
}
}
And the javascript function is:
function validTwo(value) {
alert("¿valid?");
return true;
}
The function “notEmpty” works, but the other not. Never get the message “¿valid?”!
Help me!