Simple JQuery Collapsing menu

Same menu as seen here but now as a simple collapsing menu.

Source

For this the source code becomes as ridiculously simple as this:

  1. function initMenu() {
  2. $('#menu ul').hide();
  3. $('#menu li a').click(
  4. function() {
  5. $(this).next().slideToggle('normal');
  6. }
  7. );
  8. }
  9. $(document).ready(function() {initMenu();});

Download

Download everything in a zip file