[jQuery] Re: Assigning CSS 'display:block' by jquery not working

2009-10-11 Thread Don Dunbar
Hi, this appears to be happening because of specificity in the CSS. You have the 'hidden' on a direct specification i.e. the 'ul' in question. Try adding a class like : .hidden {display:none;} and then adding and removing that through your jQuery ul.addClass(hidden) ; ul.removeClass(hidden);That

[jQuery] Re: Assigning CSS 'display:block' by jquery not working

2009-10-11 Thread Caisys
Rick, I am trying to have a two level horizontal nav bar. The second levels would be hidden by default. Depending on the location of the page being served the right one should be displayed by jq. Don, You are right assignment by id (#) takes higher priority over assignment by class. I couldn't

[jQuery] Re: Assigning CSS 'display:block' by jquery not working

2009-10-10 Thread Rick Faircloth
According to Firebug, the class, selected is being applied to #home-subnav. However, the CSS ul#sitenav li ul { display:none; }, is taking precedence over the CSS of class, selected. Are you trying to get the sub-menu (#home-subnav) to show up when you hover over Home ? Or what is the effect