I am working on a website and i try to make the side menu (sidr) close when i access a menu item. Usually after i click/tap on one, the menu still stays and i need to close it using the menu button again.

I succeeded to make it work on desktops, but i dont know how to make it on mobile.