One more

$('#quiz label').removeClass('qyes');

- Richard

On Fri, Dec 12, 2008 at 6:55 AM, Richard D. Worth <rdwo...@gmail.com> wrote:

> I like the syntax Brian suggested a lot. Here's another one, that is handy
> if you already have done a $('#quiz'):
>
> $('#quiz').find('label').removeClass('qyes');
>
> - Richard
>
>
> On Thu, Dec 11, 2008 at 11:32 PM, brian <bally.z...@gmail.com> wrote:
>
>>
>> ~ahem~ sorry 'bout that.
>>
>> $('label', '#quiz').removeClass('qyes');
>>
>> On Thu, Dec 11, 2008 at 11:31 PM, brian <bally.z...@gmail.com> wrote:
>> > $('#quiz')
>> >
>> > On Thu, Dec 11, 2008 at 11:25 PM, Bruce MacKay <b.mac...@massey.ac.nz>
>> wrote:
>> >>
>> >> Hello folks,
>> >>
>> >> I want to remove a css class (.qyes) from every label element inside a
>> >> single div (id="quiz").
>> >>
>> >> Each label element has an ID of the form "fb***" where *** represents a
>> >> unique identifier (that is not in numerical sequence and is not related
>> to
>> >> the label element's position or order in the div in any way).
>> >>
>> >> Can someone help me with the necessary selectors to identify the label
>> >> elements in the div (so as to invoke a .removeClass) - I'm completely
>> >> stumped.
>> >>
>> >>
>> >> Thanks,
>> >>
>> >> Bruce
>> >>
>> >>
>> >>
>> >
>>
>
>

Reply via email to