How to hide a DIV on clicks outside of it using jQuery?

We can use jQuery mouseup() method to check the user click on the document. This is how we can do that. In the example above we check if the target of the click is neither the container nor a descendant of the container and if so, we will hide the element. Discussion jQuery mouseup() method … Continue reading How to hide a DIV on clicks outside of it using jQuery?