Skip to main content
deleted 2 characters in body
Source Link
AlexVogel
  • 10.6k
  • 10
  • 64
  • 71
 $('body').click(function(event) { if (!$(event.target).is('p')) { $("#e2ma-menu").hide(); } });   p is the element name. Where one can pass the id or class or element name also. 

p is the element name. Where one can pass the id or class or element name also.

 $('body').click(function(event) { if (!$(event.target).is('p')) { $("#e2ma-menu").hide(); } });   p is the element name. Where one can pass the id or class or element name also. 
 $('body').click(function(event) { if (!$(event.target).is('p')) { $("#e2ma-menu").hide(); } }); 

p is the element name. Where one can pass the id or class or element name also.

Source Link
Abhishek
  • 401
  • 4
  • 4

 $('body').click(function(event) { if (!$(event.target).is('p')) { $("#e2ma-menu").hide(); } }); p is the element name. Where one can pass the id or class or element name also.