There seems to be a typo here:
http://mootools.net/docs/more/Forms/FormValidator

Under 'InputValidator', the example code, minLength.test method has a
syntax error
    test: function(element, props){
        //if the value is >= than the minLength value, element passes
test
        return (element.value.length >= $pick(props.minLength, 0));
        else return false;
    }

Remove the else with no if.

Reply via email to