I need help with following menu.
How would I get a particular submenu to stay open when a submenu item is clicked and another page is loaded.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you reload the entire page, you have to submit some information to the new page. To achieve this, you have to modify the links of your sub menu items, or set a cookie. On page load you have to parse these information (url or cookie), and apply this to your menu. You could also use some server side code to have a pre-rendered HTML where your sub menu is already open.
In this case jsFiddle is not a good helper to show you how it could work.
EDIT:
You could do the following (untested):
Give your top menu
<div>a unique ID, i.e.Add a hash to each URL of a sub item i.e.
Try this hash to open the menu