Close menu after clicking

Hi, guys!

When i click on the menu, the link it’s going to the section but the menu is still open. I need - it should close after clicking the menu link.

The structure of menu is simple: ( 1- nav-menu / 2- menu-links / 3-link-section )

In the custom code area, I try to insert these 2 codes, but nothing works. It’s going to section, but don’t close after it.

1- First try
$(‘.nav-menu menu-links a’).on(‘click’, function(){
$(“.nav-menu”).hide();
});

2- Second try
$(‘.nav-menu menu-links a’).on(“click”, function (e) {
menuLink.click().removeClass(“active”);
});

Anyone can help me with this?

Here is my public share link: Webflow - Rodrigo Pellegrino Portfolio