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
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
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
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
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
(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
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
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
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
9 matches
Mail list logo