The ValidateThis script uses {ignore:'.ignore'} by default. Is there a
way through the ValidateThis to override/set the jQuery Validate
options?
Here's what I'm doing now, but it'd be nice to do this an easier way.
```
#getColdboxOCM().get( "ValidateThis" ).getValidationScript(
objectType= "form/json" ,
formName= rc.form.name ).ReplaceAll(
"ignore:'\.ignore'" ,
'"ignore": ".ignore" ,
"errorPlacement": function\( error , element \) \{
console.log\( "errorPlacement" \);
error.appendTo\( \$\( "##error-placement-target" \) \);
\} ,
"debug": "true"
' )#
```
Here's one I've used before:
<script type="text/javascript">
jQuery(function($) {
jQuery.validator.setDefaults({
errorClass: 'field-error-message',
validClass: 'field-isvalid',
errorElement: 'label'
});
});
</script>
On 15 December 2011 16:24, Bradley Moore (orangexception)
> --
> You received this message because you are subscribed to the Google Groups "ValidateThis" group.
> To post to this group, send email to valida...@googlegroups.com.
> To unsubscribe from this group, send email to validatethis...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/validatethis?hl=en.
>