Answers for "jquery close popup when click outside"

0

jquery close popup when click outside

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

   if($(e.target).closest('#popupdivID').length != 0) return false;
   $('#popupdivID').hide();
});
Posted by: Guest on July-06-2021

Code answers related to "jquery close popup when click outside"

Code answers related to "Javascript"

Browse Popular Code Answers by Language