You have set the click element to be .menu-desplegable > ul > li > a
so only the direct child a
is bound to that listener.
You need to change your click element to .menu-desplegable > ul li a
so that a nested ul li a
can be clicked. Then you need to change the block that handles sliding the ul
up.
Change:
if ((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
$('.menu-desplegable ul ul:visible').slideUp('normal');
checkElement.slideDown('normal');
}
To:
if (checkElement.is('ul') && !checkElement.is(':visible')) {
checkElement.slideDown('normal');
}