Hi everyone, first time poster here. I am trying to find my jquery legs, so please bear with me..
I have used some jquery code to collapse my quick launch menu in sharepoint 2010. The code works well if all the menus are collapsed, however I want to make it so I select which parts of the menu remain ‘open’ while others closed. I found I could directly choose the children ul to keep open using
and it works BUT it makes it so I have to click twice to collapse the “open” ul. Is there a way to select which ul stay open, place a “minus” sign beside it and when they click the header link of those “open” ul, have it collapse on the first click instead of having to go through clicking it twice to collapse it? I am a jquery newbie so I hope i’ve explained this properly!! I am sure it has to do with the toggle code, but I am unsure of how I can specify for these selected “open” ul have it go to a specific toggle that “hides” the ul on first click instead of show, then hide..