Hi,
i've this custm check
It works if field is "no", alert works if el.value match with regexp, but error.push doesn't work.
thanks
i've this custm check
function customCheck(el){
var field= jQuery('input[name=field_name]:checked').val();
if (field === 'no') {
if ( !el.value.test(/[^.*]/) ) {
alert('required '+el.value);
el.errors.push("required");
return false;
} else {
return true;
}
}
}
It works if field is "no", alert works if el.value match with regexp, but error.push doesn't work.
thanks