Expand/Collapse Dropdown

#1

HI I am trying to create and expand/collapse on my menu/submenu and was wondering how I can create that with javascript? Page: http://54.172.86.136/manage-uploaded-assets/

11%20AM

I want to collapse the sub links under main categories and add a carrot before the category name

#2

That’s called an accordion. They’re fairly simple to create.

See here: https://www.w3schools.com/howto/howto_js_accordion.asp

1 Like