jQuery toggle menu hide/show (close other menus when new menu opens)
问题 thanks to Nick Craver I've got a nice toggle menu going, however i've come up with the problem that if users keep clicking new menus the page will keep growing which i dont want, so the idea is: as one menu opens, any currently open menus to close. The full source is @ http://the-dot.co.uk/new/ here are 2 snippets of the code I'm using. <script type="text/javascript"> $(document).ready(function() { $("ul li a").click(function() { $(this).parent().next().toggle("fast"); }); }); </script> and