In index.blade.php, I have this:
<div id="books_listing" class="container">
<div class="alert alert-success" role="alert">
<p>Book suggestions has been enabled.</p>
<span class="status-close"><b>×</b></span>
</div>
</div>
In app.js file there is this some code like this:
if (document.getElementById('books_listing')) {
const bookForm = new Vue({
el: '#books_listing',
data: {
// some data
},
methods: {
// some methods
},
mounted: function() {
// something
}
});
}
Also, below in the same app.js file, there is this code:
$('.status-close').on('click', function(){
console.log('here');
let wrapper = $(this).closest('.alert');
wrapper.fadeOut(500);
});
When I click on the close button on the modal, it does not close. What could be the possible reason?