[jQuery] Re: class toggle navigation

2009-11-04 Thread Bernard Elsmere
Thanks for the reply - I put the .active styling on the individual pages to make it clearer.. Sorry if this was confusing - the first link you referred to: Design Objects Isn't what I was trying to switch the class of - that's just the category menu and I know that once the browser has moved on, t

[jQuery] Re: class toggle navigation

2009-11-02 Thread jmatthews
I'm a little confused, but before I examine more closely, one thing I'd like an answer to is whether you have defined the initial "active" incorrectly. You gave the link to http://www.thomasrugani.com/static/designobjects/02.html That's 02.html - NOT 01.html Yet, when I look at the source of

[jQuery] Re: class toggle navigation

2009-11-02 Thread Bernard Elsmere
thanks Richard, but it doesn't work - were you aiming to combine the 2 scripts in one? On Nov 2, 9:08 pm, "Richard D. Worth" wrote: > Try this > > > $(document).ready(function(){ >   $('a').click(function() { >     $(this).toggleClass('active'); >     showPic(this); >     return false; >   });})