how to make dropdown menu and close when click outside element with Vanilla javascript only?

前端 未结 0 869
遥遥无期
遥遥无期 2021-02-03 13:09

I\'m trying to make dropdown menu and close its menu when clicking outside element.

When i clicked on the News element it doesn\'t show anything.

I would like it t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题