I’ve had the same problem: just don’t use the data-dismiss
from the close button and work with JQuery show()
and hide()
:
$('.close').click(function() {
$('.alert').hide();
})
Now you can show the alert when clicking a button by using the code:
$('.alert').show()
Hope this helps!