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').click(function(){
jQuery("#site-navigation").removeClass('scroll-open');
});

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.