I have a simple menu that slides down more UL when the parent LI is clicked, if there is a child UL to follow...
I am trying to make it so when the menu is in a certain directory it will have that menu expanded by default rather than closed. I have tried a few things, but am just not getting it to work. Currently I have a IF statement comparing the PATHNAME with the Varibles and just telling that ID to keep the UL open... That has been as close as I can get.
Any suggestions on how to make the UL stay open if the page url is the same as the parent UL HREF?
You can see the code here: http://jsfiddle.net/RvGMQ/
Thanks!
Ok, so I got something to work here. Let me know if there is a better way if you come across this post...
I ended up creating a Meta Tag called MyTitle and gave it content to compare an ID to then display UL based on that Meta Tag.
etc..........