Suneth Senanayake
Suneth Senanayake

Reputation: 190

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

Upvotes: 1

Views: 164

Answers (1)

Menaka Kariyawasam
Menaka Kariyawasam

Reputation: 618

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

Upvotes: 1

Related Questions