Hello folks,

I've just belatedly upgraded to the latest version of jQuery and am finding old plugins now misbehaving.

I'm having trouble with Kevin Luck's styleswitch.

FIrebug is reporting "$ is not a function" on the first line of this code. I can't understand it - jquery is already loaded.

        $('.styleswitch').bind('click',function()
        {
                switchStylestyle(this.getAttribute('rel'));
                return false;
        });
        var c = readCookie('style');
        if (c) switchStylestyle(c);

[Actually, the first line in Kevin's code is
$('.styleswitch').click(function()

but I have a recollection that .bind('click',...) is now the preferred format.]

Can anyone help me here please (or point me at another stylesheet switching approach).

Thanks


Bruce 

Reply via email to