Answers for "close modal on click outside jquery"

9

close modal jquery

$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');
Posted by: Guest on February-12-2020
5

on modal close jquery

$('#myModal').on('hidden.bs.modal', function () {
  // do something…
})
Posted by: Guest on April-10-2020
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 "close modal on click outside jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language