Are you searching for how do I detect a click outside an element using jQuery, then this example for you. In jQuery if you want to find out when a click is happening outside an element then you have to use
//Hide the menus if visible
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.