Answers for "jquery close modal outside"

34

close modal jquery

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

jquery modal if clicked outside

$('body').click(function (event) 
{
   if(!$(event.target).closest('#openModal').length && !$(event.target).is('#openModal')) {
     $(".modalDialog").hide();
   }     
});
Posted by: Guest on November-07-2021

Code answers related to "jquery close modal outside"

Code answers related to "Javascript"

Browse Popular Code Answers by Language