alright I figured it out, by putting my removeClass after my addClasses it works great
function nav_label() { $(".nav_label").children("ul").addClass("lev1").children ("li").addClass("lev1").children("a").addClass("lev1").parent ().children("ul").addClass("lev2").children("li").addClass ("lev2").children("a").addClass("lev2"); $(".nav_label").children("ul").removeClass("hideNav"); On Oct 2, 10:19 am, Zach Schneider <zachschnei...@gmail.com> wrote: > well I hide the DIV with CSS > visibility: hidden; > > and with jQuery I want to change the stylesheet and remove the > visibility to visible, the problem I am having I am not that familiar > with jQuery to know how to do that > > On Oct 1, 10:41 pm, Scooby <scoob...@gmail.com> wrote: > > > How are you hiding your UL's? From my experience, hiding them with css > > is faster than jQuery.. I just hide them using both.. Seems to work > > fine for me.. > > > On Oct 1, 8:41 pm, ZKM <zachschnei...@gmail.com> wrote: > > > > I have a website that has very large UL navigation created with jQuery > > > and every time you goto the page it flashes the entire UL for a split > > > of a second. So what I want to do is find a way to make it to do I > > > think is hide the UL until the CSS and jQuery is loaded than display > > > the menu. If anyone has a better idea I am all ears and I am also new > > > to jQuery but catching on fast.