JavaScript Vertical CSS and Javascript onclick menu clicking on sublevel makes it disappear

I'm very new to Javascript and pretty new to CSS/HTML as well. I'm trying to create a vertical menu with CSS and javascript. The sublevels should appear on the right of the menu when someone click on the appropriate title. I've managed to get it to work with the first sublevel. It appears and disappears when I click it's 'parent'. But whenever I try to click on a title in the sublevel the sublevel closes instead of opens the next sublevel. I know I'm doing something wrong but I can't figure out what it is :( I've gathered my code here: http://jsfiddle.net/kyqJ6/ but for some reason it doesn't work there although I've copied it directly. Here is an example of my js:

function dropdown1()
    {
        if(document.getElementById('menu1').style.display=='block'){
            document.getElementById('menu1').style.display='none';
        }
        else{ 
            document.getElementById('menu1').style.display='block';
        }
    };

I know I've probably done a lot of stupid things in the code and that there's plenty of things that could be done better, feel free to point those things out but I can live with it (for now) if I can just get help with my question :) Thanks for reading this and thanks in advance for any consideration/help :)

Answer:1

I am using the Gantt Chart provided by Google. I have added a listener to when I click on any of the elements or entity in attempt to return the row/columns data, but it is returning empty, ...

I am using the Gantt Chart provided by Google. I have added a listener to when I click on any of the elements or entity in attempt to return the row/columns data, but it is returning empty, ...

  1. google gantt chart template
  2. google gantt chart maker
  3. google gantt chart app
  4. google gantt chart free
  5. google gantt chart dependencies
  6. google gantt chart custom tooltip
  7. google gantt chart react
  8. google gantt chart options
  9. google gantt chart angular
  10. google gantt chart javascript
  11. google gantt chart generator
  12. google gantt chart examples
  13. google gantt chart bar color
  14. google gantt chart scroll bar
  15. google gantt chart jsfiddle
  16. google gantt chart date format
  17. google gantt chart drag and drop

Noob at polymer here, so please bear with me. I'm trying to learn how to create a form, one that requires the user to input text into a textbox, before hitting "Submit". Should the user hit "Submit" ...

Noob at polymer here, so please bear with me. I'm trying to learn how to create a form, one that requires the user to input text into a textbox, before hitting "Submit". Should the user hit "Submit" ...

  1. polymer input validation
  2. polymer field validation
  3. polymer paper-input validation
  4. polymer form input validation
  5. polymer 3 paper input validation

I have been working with a page that redirects a user to either an installed application or a webpage (the fallback). This is called when the page first loads via ClientScript.RegisterStartupScript; ...

I have been working with a page that redirects a user to either an installed application or a webpage (the fallback). This is called when the page first loads via ClientScript.RegisterStartupScript; ...

  1. settimeout redirect not working

I'm trying to send a simple message from a form to my server using socket.io. Sadly enough this is failing, I know the client has a connection with the server, but it does not appear to receive the ...

I'm trying to send a simple message from a form to my server using socket.io. Sadly enough this is failing, I know the client has a connection with the server, but it does not appear to receive the ...

  1. socket.io send form data
  2. socket.io send form