Here's what I am doing... I have an child element that has a z-index of -1 to begin with. Once the parent is clicked, it changes the z-index of the child to 9999 to give it the feel of a pop-up. Now when I click anywhere else on the page besides the parent or the child, I want the z-index of the child to go back to -1. Can anyone provide help with this?