I have an alert that trigger by button and alert dissapear after 3 seconds. How can i manage to show that alert again after every click to button.. Currently it shows only one time..
<div id="ex1">
<button id="alert-trigger" data-dismiss="alert" class="btnClick">Trigger
Alert</button>
<div id="example" class="alert" role="alert"></div>
<script type="text/template" id="alert-template">
<p><span lang="da">Merhaba</span>, hello, <span lang="ja">Hallo</span></p>
</script>
<script type="text/javascript">
$(document).ready(function () {
window.setTimeout(function() {
$(".alert").fadeTo(1000, 0).slideUp(1000, function(){
$(this).remove();
});
}, 3000);
});
</script>
</div>