That's fantastic. Thanks.
> You should be able to just set the defaults in a seperate script block.
> 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)
> <orangexcept...@gmail.com> wrote:
> > I'm wanting to throw errors in a different place than standard. The
> > jQuery Validate plugin lets you do this by using "errorPlacement"
> > option.
> > 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"
> > ' )#
> > ```
> > --
> > You received this message because you are subscribed to the Google Groups "ValidateThis" group.
> > To post to this group, send email to validatethis@googlegroups.com.
> > To unsubscribe from this group, send email to validatethis+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/validatethis?hl=en.