mercadolibre/chico — Issue #508: [Feature Request] Validations: Allow logic concatenations
Author: natos
Created: 2012-01-03 17:06:30+00:00
State: open

The idea is to preset logic concatenations to validations such as &&; ||; not;
Examples:

AND > $('#a').number().and().max(10);

OR > $('#a').custom(isAdmin).or().custom(isOperator);

NOT > $('#a').not().number();

The horror > $('#a').number().and().max(10).and().min(1).or().custom(isAllowed).