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