I’m trying to build a pretty simple javascript menu with a click function to slideUp and Down.
The javascript code seems to be working but something is messing with the css.
I’ve tried a couple of things but can’t get it to work.
Here’s the demo:
http://goo.gl/BoIwm
I appreciate any kind of help!
Thanks!
Check this FIDDLE
I have rearranged the subitems div so that the position of them appearing below the respective menu item.. Otherwise you need to specify the exact postion if you are placing them outside the wrapper..
You code seems to be right ,but the position was messing it up..
I have removed the javascript function and specified the click event for the anchor tag..