show a hidden ul if li is active

You can achieve this with a simple JQuery selector.

$($('.active').parent('ul').get(0)).css('display', 'none');

We are selecting the parent UL where we find the active class and hiding the element via css.

https://jsfiddle.net/0voxj6fp/