And in case you wanted to remove the class only from the label
elements *with* that ID form you would use

$('#quiz label[id*=fb]').removeClass('qyes');

that's plenty of help, isn't it? :)

On Dec 12, 2:25 am, 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