[jQuery] Re: [validate] Ignore hidden form fields from the validation

2008-10-29 Thread luke BAKING barker
Hi I am having problem with this, in CakePHP it outputs the thml for a checkbox as the following: do you agree to the terms? I have been unbale to get a validation to ensure the checkbox is checked . Here is my option code: $("#CoverAddForm").validate({

[jQuery] Re: [validate] Ignore hidden form fields from the validation

2008-10-10 Thread Weyert de Boer
Hmm, I will give it a try. I am currently hiding the container element of the form fields. I suppose this means I would need to write a custom method for hiding/showing which adds this class name and add it to the actual form field element too. On Fri, Oct 10, 2008 at 1:42 PM, Jörn Zaefferer <[E

[jQuery] Re: [validate] Ignore hidden form fields from the validation

2008-10-10 Thread Jörn Zaefferer
You use the ignore-option (a selector) to set additional elements to ignore when validating. One approach would be to define a class in your stylesheet with display:none, then adding and removing that class to hide an element, and set the option ignore: ".customClassHidingElements". Jörn On Fri,