I've got a slide menu that seems to be working fine, the thing is if you select a link it works as it should do, if you select a link that has a child then the preventdefault() kicks in and it scrolls to it's child, i'm happy so far, but once you get to the end of the links as there's no more children, the link should work as normal but it doesn't.
here's the jquery
$(".menu li").click(function(e) {
if($(this).children('.sub-menu').length > 0) {
e.preventDefault();
$(this).children('.sub-menu').addClass('open');
}
else {
$(".menu li").ready(function(){
return true;
});
}
});
i've also attached a fiddle of it working.