I think what you need is
$('ul.navbar-nav li').hover(function () {
$(this).find('.sidenav_wrapper:first').css('display', 'block');
}, function () {
$(this).find('.sidenav_wrapper:first').css('display', 'none');
});
$(".sidenav_active").parent().css({
"display": "block"
});
$('.sidenav_active').closest('.sub_menu').find('a').css({
"font-weight": "700"
});
Demo: Fiddle
0
solved How can I apply a style to a parent of a specific child