Suneth Senanayake Suneth Senanayake - 4 months ago 12
jQuery Question

modal window does not hide in ajaxStop function in jquery

ajaxStart function
is working correctly.But modal window does not hide in
ajaxStop function
in
jquery
.

This is my code

$(document).ajaxStop(function () {
$('#loading-modal').modal('hide');
});


There is a
error
in
console
.
Uncaught TypeError: $(...).modal is not a function

Answer

Make sure your jquery file or bootstrap.js file overwriting again. sometimes it's the issue. cheers.