This is just an example of a dropdown using DropdownJS. No coding needed to make this, just html attributes. You can also change the styles to your liking for your projects.