Problem tkwi w tym, że po kliknięciu w SubMenu zamiast mnie przekierować to chowa całą klase.
W jaki sposób zrobić tak aby po kliknięciu w SubMenu mnie przekierowało, a po kliknięciu w Menu rozwijało się SubMenu tak jak jest obecnie .
Skrypt można zobaczyć tu: http://s-port.nazwa.pl/jq_menu.html
<html> <head> <meta charset="ISO-8859-2" /> <meta name="keywords" content="#" /> <meta name="description" content="#" /> <meta name="language" content="pl" /> <meta name="robots" content="index, follow" /> <script> $(document).ready(function() { $("#vert li").each(function() { if ($(this).find('ul:first').length > 0) { $(this).addClass('arDown'); } if ($(this).hasClass("on")) { $(this).find('ul:first').slideToggle('fast'); } }); $("#vert ul li").click(function() { if ($(this).find('ul:first').length > 0) { $(this).find('ul:first').slideToggle('fast'); $(this).toggleClass('on'); return false; } }); }); </script> <style type="text/css"> <!-- #vert ul { float: left; width: 168px; margin: 0; list-style: none; background: white; } #vert > ul > li { float: left; width: 168px; margin: 2px 0; padding: 2px 0; border-bottom: 1px solid #ebebeb; } #vert > ul > li:last-child { border: 0 none; } #vert > ul > li > a { float: left; width: 168px; font-family: "MyriadPro-Semibold", "Arial"; font-size: 14px; text-shadow: 1px 1px 1px #fff; color: #444; } #vert a:hover { text-decoration: none; color: #039ec3; } .arDown { background: url(el.png) right -67px; } #vert .on { background: url(el.png) right -94px; } #vert .on > a { color: #2cb91e !important; } #vert ul ul { display: none; margin: 5px 0; } #vert ul ul li { width: 158px; background: url(el.png) left -42px; padding-left: 10px; margin: 1px 0; } --> </style> </head> <body> <nav id="vert"> <ul> <ul> </ul> </li> </ul> </nav>