HighDots Forums  

Unknown pseudo-class or pseudo-element 'odd'.

jQuery jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript.


Discuss Unknown pseudo-class or pseudo-element 'odd'. in the jQuery forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shapper
 
Posts: n/a

Default Unknown pseudo-class or pseudo-element 'odd'. - 09-13-2009 , 02:19 PM






Hello,

I am using JQuery 1.3.2 and the following code line:
$("table.Engine tbody trdd").addClass("Alternate");

I get the following error on firebug:
Unknown pseudo-class or pseudo-element 'odd'.

What am I doing wrong?

Thanks,
Miguel

Reply With Quote
  #2  
Old   
Karl Swedberg
 
Posts: n/a

Default Re: Unknown pseudo-class or pseudo-element 'odd'. - 09-14-2009 , 10:31 AM






Not sure why you're having this problem, but take a look at the very
simple test case here: http://test.learningjquery.com/alt-rows.html

It seems to work fine. Maybe something else is going on in your code
or markup? Hard to tell from that snippet.

--Karl

____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Sep 13, 2009, at 2:19 PM, shapper wrote:

Quote:
Hello,

I am using JQuery 1.3.2 and the following code line:
$("table.Engine tbody trdd").addClass("Alternate");

I get the following error on firebug:
Unknown pseudo-class or pseudo-element 'odd'.

What am I doing wrong?

Thanks,
Miguel

Reply With Quote
  #3  
Old   
Lee
 
Posts: n/a

Default Re: Unknown pseudo-class or pseudo-element 'odd'. - 11-07-2009 , 02:08 AM



Hi Karl & Miguel,

Using Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:
1.9.1.5) Gecko/20091102 Firefox/3.5.5,

Viewing the test, I get this error:

Warning: Unknown pseudo-class or pseudo-element 'odd'.
Source File: http://test.learningjquery.com/alt-rows.html
Line: 0

Not sure why this would be happening although I am having similar
problems with :first etc...

Can anyone on a different platform confirm this behavior?

Regards, Lee.

Reply With Quote
  #4  
Old   
Karl Swedberg
 
Posts: n/a

Default Re: [jQuery] Re: Unknown pseudo-class or pseudo-element 'odd'. - 11-07-2009 , 07:24 PM



that's strange, Lee. I just tried with FF 3.5.5 Mac (Mozilla/5.0
(Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102
Firefox/3.5.5 ) and had no such errors

--Karl

On Nov 7, 2009, at 2:08 AM, Lee wrote:

Quote:
Hi Karl & Miguel,

Using Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:
1.9.1.5) Gecko/20091102 Firefox/3.5.5,

Viewing the test, I get this error:

Warning: Unknown pseudo-class or pseudo-element 'odd'.
Source File: http://test.learningjquery.com/alt-rows.html
Line: 0

Not sure why this would be happening although I am having similar
problems with :first etc...

Can anyone on a different platform confirm this behavior?

Regards, Lee.

Reply With Quote
  #5  
Old   
pierre
 
Posts: n/a

Default Re: Unknown pseudo-class or pseudo-element 'odd'. - 11-20-2009 , 05:51 AM



I'm seing the same behaviour on FF3.5.5 Windows with the example page
above or with my test page (I'm using :visible selector). I also use
jquery 1.3.2.
I actually get it on the document page on jquery.com:

Warning: Unknown pseudo-class or pseudo-element 'visible'.
Source File: http://docs.jquery.com/Selectors/visible
Line: 0

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.