[jQuery] Checking select option has class?

[jQuery] Checking select option has class?

Hi all,
:disabled doesn't want to work as I expect - when I submit with a
"disabled" option selected, the whole select drop down becomes disabled
(or rather the class is added to ALL the options). I've added my real
code in below, rather than working with hypotheticals - any more ideas?
// if option is "disabled", don't submit it
if( $('#idol_date_day1').is(":checked") && $('#idol_datetime_day1
option:disabled') ){
    // add class to change colour
    $('#idol_datetime_day1
option:disabled').addClass("required").get(0).focus();
    return false;
}else{
    $('#idol_datetime_day1
option:disabled').removeClass("required");
    }
Thanks,
Luc
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On
Behalf Of Dave Methvin
Sent: 18 October 2006 17:54
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Checking select option has class?