[jQuery] Re: Help optimising jquery code - there must be a better way

2008-10-21 Thread Kent Humphrey
Great, thanks for that Erik. I'll try a few things and see how I go. I wasn't asking for a rewrite of the whole thing, just some pointers :> Erik Beeson wrote: > > I don't have time to rewrite your whole example, but I can offer a few > tips > that might help. Selecting by class alone can be

[jQuery] Help optimising jquery code - there must be a better way

2008-10-20 Thread Kent Humphrey
I am relatively new to jquery, but have managed to muddle my way through a complicated navigation design that has overlapping selected states, eg with menu items 1,2,3,4 and 5, when item 2 is selected, the images for items 1 and 3 also have to change. The code is long and convoluted, and I am s