jquery - Why the sub links won't work? -


i have problem links in slidedown menu.

the link's aren't clickable why?

you can see here: jsfiddle

my jquery code is:

$('.links').hide(); $('.header a').click(function(e) {     $(this).next('.links').slidetoggle('normal');     e.preventdefault(); }); 

your selector .header a affect anchors contained within .header, don't want. want toggle() when anchor, direct child of .header clicked.

$('.header > a').click(function(e) {     e.preventdefault();     $(this).next('.links').slidetoggle('normal'); }); 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -