Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery close popup when click outside

$(document).click(function(e){

   if($(e.target).closest('#popupdivID').length != 0) return false;
   $('#popupdivID').hide();
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #close #popup #click
ADD COMMENT
Topic
Name
1+7 =