[jQuery] Re: logical AND check

2009-02-05 Thread Jörn Zaefferer
Yeah, that'll do, too: required: function() { return $('#radioButton1:checked, #radioButton2: checked').length == 2; } Jörn On Thu, Feb 5, 2009 at 10:12 PM, Eric Garside wrote: > > You could just do: > > if ($('#radioButton1:checked, #radioButton2: checked').length == 2)){ > //required > } el

[jQuery] Re: logical AND check

2009-02-05 Thread Eric Garside
You could just do: if ($('#radioButton1:checked, #radioButton2: checked').length == 2)){ //required } else { //not required } On Feb 5, 1:51 pm, Jörn Zaefferer wrote: > The [validate] indicates that the message is about the validation > plugin. I'm asking to put that into the subject on the plu

[jQuery] Re: logical AND check

2009-02-05 Thread Jörn Zaefferer
The [validate] indicates that the message is about the validation plugin. I'm asking to put that into the subject on the plugin page. To the question, try this: required: function() { return $("#radioButton1:unchecked").length && $("#radioButton2:unchecked").length; } Jörn On Thu, Feb 5, 200

[jQuery] Re: logical AND check

2009-02-05 Thread MorningZ
You using a plugin like "Validate" or just a general "how do I?" question