0
$('.menu-expand').click(function () {
$(this).find('ul').toggleClass("menu-mobile-expandido");
});
I would select not any ul
, but the first ul
within the class .menu-expand
.
I tried to use .menu-expand > ul
inside the find but it didn’t work.
$(this).find('ul:first')
does not solve the problem? or simply$('ul.menu-expand:first')
– Ricardo Pontual