Works for me:

http://jsbin.com/axehe

Perhaps you haven't included jQuery UI Effects core? That's where
switchClass comes from:

http://jqueryui.com/demos/switchClass/

If you're just using jQuery, and don't need to animate the switch,
toggleClass is what you want:

http://docs.jquery.com/Attributes/toggleClass

- Richard

On Sun, Jul 19, 2009 at 1:40 PM, Lucian Cioranu <lucian.cior...@gmail.com>wrote:

>
> Hi,
>
> I am trying to change the class of <body> using switchClass, and it is
> not working. AddClass and removeClass are working just fine.
>
> Anyone has a solution for that?
>

Reply via email to