[jQuery] Re: Method addClass is not working with MS Internet Explorer (IE) 6

2007-10-26 Thread Mindjoy
Karl, you're right, your suggestions work fine in IE. However, I will settle on attr method since it's shorter and does exactly what I want to do. Thank you for your help. Regards, Ivica Mikic On Oct 25, 6:19 pm, Karl Swedberg [EMAIL PROTECTED] wrote: I'm guessing this is a weird css

[jQuery] Re: Method addClass is not working with MS Internet Explorer (IE) 6

2007-10-25 Thread Dave Methvin
.addClass() doesn't replace any existing class, it just ... adds another class. So it seems like you would have two classes. Also, beware of the IE6 multi-class bug: http://www.ryanbrill.com/archives/multiple-classes-in-ie Investigation complete?

[jQuery] Re: Method addClass is not working with MS Internet Explorer (IE) 6

2007-10-25 Thread Karl Swedberg
I'm guessing this is a weird css specificity issue for IE, but it's hard to tell without seeing your stylesheet. Also, you can use the DOM viewer with the IE developer toolbar to see if the class is actually being applied to the element (even if it might not appear to do so). That said,