Hi. I have a mobile menu on my website that has a few sub-menu items. When i click an item that has sub-items, it expands, as expected. But, if i click another item, the previous one remains expanded. I would like it to auto-colapse. How can i accomplish this? Velo code? any help is very much appreciated.
To make the button toggle the box state (expand it if collapsed or collapse if expanded):
$w.onReady(() => {
$w('#toggleBtn').onClick(() => $w('#box').collapsed ? $w('#box').expand() : $w('#box').collapse());
})
@J.D any insights on this?
These are element ids. You need to edit your element id from the inspector panel. Here it is:

Change your button id to “toggleBtn” and your box id to “box”.
If you are trying yo change the element id it doesn’t matter if it’s mobile or not element ids are always same.
If you trying to change the visual things for mobile then there are some limitations on classic editor as I remember. Haven’t used classic editor for a long time so not sure.
i have same issues with my vertical menu? Any solutions?
any updates? please ?

