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
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
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
You using a plugin like "Validate" or just a general "how do I?"
question
4 matches
Mail list logo