On Sat, May 10, 2008 at 8:46 AM, Jong <[EMAIL PROTECTED]> wrote:

>
> For some reason, Internet Explorer doesn't seem to like the attr()
> function.
>
> // switch all tabs with the class 'active' off
> $(".active").attr({ class: "tab" });


The name of the attribute is 'className', not 'class'. So this works

$(".active").attr({ className: "tab" });

Or, as you mentioned, toggleClass/addClass/removeClass can be used.

- Richard

Reply via email to