I want to display an alert box multiple times with a button click event without having to refresh the page but the alert box only shows up once. If I want to show the alert box
I've had the same problem: just don't use the data-dismiss from the close button and work with JQuery show() and hide():
data-dismiss
show()
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!