Help on a JS function.

I need to have my mobile menu closed when a menu item is clicked. It only scrolls the page to an anchor and keeps opened.

As a workaround, I’m using

jQuery(‘#menu-item-1131 a, #menu-item-1100 a, #menu-item-1132 a, #menu-item-1102 a’:wink:.click(function(){

jQuery(“#site-navigation”:wink:.removeClass(‘scroll-open’:wink:;

});

But it is not the best option, if I need to add or remove the menu items will need to update the function.

Can you help me to create a function to catch all menu items?

Thank you in advance.