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 wrote:
> Ther
nction validateFirstNameInput(value, element) { return !
lastNameInput.value || value; } // 1
function validateLastNameInput(value, element) { return !
firstNameInput.value || value; }// 2
function validateNameInputs(value, element) { return
firstNameInput.value && lastNam
rrors when
only a subset of the possible conditions get applied.
I'm looking for a way to do this with a single validator myself. I
have dynamic forms and more complex situations, so I can't employ this
solution. If anyone knows how to do it, please don't hesitate to put
it in.
Mihai
ck;
> validator.check = function(element) {
> var result = check.apply(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 <[E
e rendering of
the vaidation results and that will make it easier to allow
customizations of the rendering (I think there's a note about this
separation on your site) but hey, I've only just arrived in both
jQuery and Validator workd; you'll get better input on this hot topic
fr
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 controls
-validation event? At least I could scan for error
labels and create tooltips each time the validity changes.
Mihai
On Nov 2, 4:51 am, Kenet <[EMAIL PROTECTED]> wrote:
> Jorn,
>
> Back in April of 2007 you had a discussion on your comments section
> for your ToolTip Plugin, here
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
Hi guys,
Is it possible for the validator component to make exactly one field
within a chosen set required?
If either input has a value, then validation succeeds. If neither
input has a value, then both fields should be marked as failed with
preferably a message next to them.
Thanks,
Mihai
I also tried to play around with this but still without success.
Apparently you can initialize the date like this:
var liftoffTime = new Date();
liftoffTime.setDate(2009,8,1,14,0,0); (year / month / day / hour /
minute / seccond)
but it keeps counting "65 months and down".. and starting o
I found out how (just a couple of minutes ago):
You don't need to initialize a variable using the new Date, but do the
initialization inside .countdown({
example:
$('div#countdowntimer').countdown({until:new Date
(2009,9,15,14,0,0),format:'odHMS'});
This will countdown to: September 15th 2009,
11 matches
Mail list logo