var validatorConfig = { 'lang' : 'nl', 'errorClass' : 'ipmControlError', 'messageClass' : 'ipmErrorMessage', 'position' : 'bottom left', //'offset' : [-3, 0], 'onFail' : function(e, errors) { $.each(errors, function() { var $control = this.input; $control.parents('.ipmField').addClass('ipmError'); }); }, 'onSuccess' : function(e, valids) { $.each(valids, function() { var $control = $(this); $control.parents('.ipmField').removeClass('ipmError'); }); } }; $.tools.validator.localize('nl', { '*' : 'Please correct this value', ':email' : 'Please enter a valid email address', ':number' : 'Please enter a valid numeric value', ':url' : 'Please enter a valid URL', '[max]' : 'Please enter a value no larger than $1', '[min]' : 'Please enter a value of at least $1', '[required]' : 'Please complete this mandatory field' });