I am trying to create a side nav menu using a list. In this list, some list-items have sub list. When I click on such an item, I want the sub-items to appear using slideToggle.
The problem that I am facing is that, in my UL of 4 items 2nd and 3rd have sub-list, but when I am clicking on them I only see the 2nd item's sub list not the3rd item's sub list.
Now I would like to replace this menu with another side menu that I had downloaded earlier, for a website that I am designing. Now that I know jQuery, I would like to add my menu.
But, when I replace the CSS and jQuery for this new menu (HTML is the same), the side nav menu gets distorted, takes up about 60% of width and the main content div gets pushed downward.
I am trying to create a side nav menu using a list. In this list, some list-items have sub list. When I click on such an item, I want the sub-items to appear using slideToggle.
The problem that I am facing is that, in my UL of 4 items 2nd and 3rd have sub-list, but when I am clicking on them I only see the 2nd item's sub list not the3rd item's sub list.
Can anyone correct this problem.
Code is located at http://jsfiddle.net/Metal_head/2e5Nf/
Regards
MH
link: http://codepen.io/chrisxclash/pen/19/1
Now I would like to replace this menu with another side menu that I had downloaded earlier, for a website that I am designing. Now that I know jQuery, I would like to add my menu.
But, when I replace the CSS and jQuery for this new menu (HTML is the same), the side nav menu gets distorted, takes up about 60% of width and the main content div gets pushed downward.
How the old menu looks like: https://docs.google.com/file/d/0B-mhigcuV7cUaWtNYmxUUnFMakE/edit
How its actually looking: https://docs.google.com/file/d/0B-mhigcuV7cUMm1MSVNsT0xMdDA/edit
How it flickers when I hover on the first link: https://docs.google.com/file/d/0B-mhigcuV7cUYkJIX2R4RG9FYk0/edit
Thanks
MH
old css:
old js is different, here it is: