)
Subject: [jQuery] Re: Apply or remove style - Not workingin IE versions
Is your mark-up valid? Works fine for me: http://jsbin.com/eninu
Is that a typo? You must close the definion list, and it only takes
and elements inside.
On May 24, 11:09 pm, "Dave Maharaj :: WidePixels.com"
wro
7;);
> $('#resume_education dl:first').addClass('first_entry');
>
> _
>
> From: Mauricio (Maujor) Samy Silva [mailto:css.mau...@gmail.com]
> Sent: May-24-09 8:14 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: Apply or remove
> #CCC}
>
> js;
> $('#resume_education dl:first').removeClass('entry');
> $('#resume_education dl:first').addClass('first_entry');
>
> _
>
> From: Mauricio (Maujor) Samy Silva [mailto:css.mau...@gmail.com]
> Sent: May-24-09 8:14 PM
> T
ass('entry');
$('#resume_education dl:first').addClass('first_entry');
_
From: Mauricio (Maujor) Samy Silva [mailto:css.mau...@gmail.com]
Sent: May-24-09 8:14 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Apply or remove style - Not workingin
Would you please provide a sample for your HTML markup?
Maurício
-Mensagem Original-
De: Dave Maharaj :: WidePixels.com
Not working in IE at all. Works in FF but noting in IE 5.5 to 7
$('#resume_education dl:first').addClass('first_entry');
CCC}
-Original Message-
From: Chris J. Lee [ MSU #14 ] [mailto:chri...@gmail.com]
Sent: May-24-09 7:00 PM
To: jQuery (English)
Subject: [jQuery] Re: Apply or remove style
Given your table is named #foo:
$(#foo tr:first) // this selector would select the first row
or this would work as
Perfect!
Works just as needed.
Thanks for the help.
Greatly appreciated.
Dave
-Original Message-
From: Chris J. Lee [ MSU #14 ] [mailto:chri...@gmail.com]
Sent: May-24-09 7:00 PM
To: jQuery (English)
Subject: [jQuery] Re: Apply or remove style
Given your table is named #foo
Given your table is named #foo:
$(#foo tr:first) // this selector would select the first row
or this would work as well $('#foo tr:eq(0)');
You could then chain it with a native jquery function, "addClass" to
add the class. Or as well as toggleClass.
The following would result:
$('table#foo tr
8 matches
Mail list logo