[jQuery] Re: validation plugin: how to add custom messages for groups

2009-01-30 Thread Mihai Danila
I think you can put three validators on the fields, with jQuery.validator.addMethod. I don't know if you can add multiple validators for the same CSS class, so I'm putting extra CSS classes on the inputs: input id=firstName class=first-name-input name-input/ input id=lastName class=last-name

[jQuery] Re: validation plugin: how to add custom messages for groups

2009-01-30 Thread Mihai Danila
lastNameInput.value; } // 3 On Jan 30, 11:18 am, Mihai Danila virid...@gmail.com wrote: I think you can put three validators on the fields, with jQuery.validator.addMethod. I don't know if you can add multiple validators for the same CSS class, so I'm putting extra CSS classes on the inputs: input

[jQuery] Re: validation plugin: how to add custom messages for groups

2009-01-30 Thread Mihai Danila
Sorry, the third validator must only get activated if both are empty (in other words, it must return true if either is not empty): function validateNameInputs(value, element) { return firstNameInput.value || lastNameInput.value; } On Jan 30, 11:19 am, Mihai Danila virid...@gmail.com wrote

[jQuery] [validate] Group Validation, Validation Events

2008-12-08 Thread Mihai Danila
I have a few questions, given that I'm new to the validation plugin. 1. We validate groups of controls; validation for the entire group succeeds if at least one field is present -- call it REQUIRED on steroids. To implement this, we use one call to addMethod + one CSS class per group of

[jQuery] Re: [validate] Group Validation, Validation Events

2008-12-08 Thread Mihai Danila
being actually useful. Jörn On Mon, Dec 8, 2008 at 4:42 PM, Mihai Danila [EMAIL PROTECTED] wrote: I have a few questions, given that I'm new to the validation plugin. 1. We validate groups of controls; validation for the entire group succeeds if at least one field is present -- call

[jQuery] Re: [validate] Group Validation, Validation Events

2008-12-08 Thread Mihai Danila
(this, arguments);   // do something after validating an element, use element and result variables   return result; }); Jörn On Mon, Dec 8, 2008 at 7:20 PM, Mihai Danila [EMAIL PROTECTED] wrote: If the new handlers would want to extend on (be siblings of) the invalidHandler feature

[jQuery] Re: How to display validation error messages in a tooltip? JORN

2008-12-06 Thread Mihai Danila
Did anything get done in this direction? In some cases, putting the error messages inline is unreasonable. An error container is also unreasonable, for it requires scrolling to the container and adding links to the fields from each error message to make its function decent. Is there a

[jQuery] [validate] Required on Fields Matching Criteria

2008-12-05 Thread Mihai Danila
Hi guys, Is it possible for the validator component to make exactly one field within a chosen set required? input type=text id=input1 class=my-group/ input type=text id=input2 class=my-group/ If either input has a value, then validation succeeds. If neither input has a value, then both fields

[jQuery] [validate] Rule Selectors

2008-12-05 Thread Mihai Danila
Hi, Is it possible to use jQuery selectors to identify the elements to which certain rules should apply? If this feature exists, then I won't have to unnecessarily complicate the component that dynamically creates my form and that features various control types. Thanks, Mihai