Twitter Bootstrap alert message close and open again
Data-dismiss completely removes the element. Use jQuery’s .hide() method instead. The fix-it-quick method: Using inline javascript to hide the element onclick like this: <div class=”alert” style=”display: none”> <a class=”close” onclick=”$(‘.alert’).hide()”>×</a> <strong>Warning!</strong> Best check yo self, you’re not looking too good. </div> <a href=”#” onclick=”$(‘alert’).show()”>show</a> http://jsfiddle.net/cQNFL/ This should however only be used if you are lazy … Read more