$(this+':even').addClass("shaded");

   
  
Jeff <[EMAIL PROTECTED]> wrote:
  
'scuse me for the noob question here...

i have statements like this:

$(".highlight").removeClass;
$("this:even").addClass("shaded");

And I don't think I'm using "this" or :even correctly; it doesn't work
=)

Googling has turned up some different ways that the "this" keyword is
used, and I'm not sure what is right here. I'm just trying to remove a
class from a bunch of elements and then apply a new class to even
numbered elements.

Any ideas? Again, sorry for the dumb question, but googling the word
"this" isn't very helpful since you get like 10 kabillion results.


 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to