How do I detect a click outside an element using jQuery?

Posted by Prem Tiwari | Updated on

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 .stopPropagation() method.


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.

Related Questions & Answers