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
You don't need to use jquery to accomplish this, here's a bootstrap-only solution.
The on/off button:
The alert with a close button that hides the alert (same as clicking the show/hide button):
Look, here's a show/hide alert box without jquery...