Modal popup overlay background layer not remove after ajax call

By | June 20, 2018

if your model id is mydeletemodal, then below code will solve the issue.

$(‘#mydeletemodal’).modal(‘hide’);
secondly remove ‘modal-open’ class from body and ‘.modal-backdrop’ at the end of the page.

$(‘body’).removeClass(‘modal-open’);
$(‘.modal-backdrop’).remove();