Click outside menu to close in jquery
- by George
So I have a drop-down menu that shows on a click, as per business requirements. The menu becomes hidden again after you mouse away from it.
But now I am being asked to have it stay in place until user clicks anywhere on the document. How can this be accomplished?
This is a simplified version of what I have now:
$(document).ready(function() {
…