How to hide a popup by clicking outside

后端 未结 3 589
醉酒成梦
醉酒成梦 2020-12-21 10:55

I am trying to come up with a way so that once #email-popup or #phone-popup is visible, if the user clicks anywhere EXCEPT the visible popup, then it is going to hide the po

3条回答
  •  半阙折子戏
    2020-12-21 11:15

    What about it doesn't work well? What does happen? By the way, you're hiding #email-popup twice in your click handler.

提交回复
热议问题