For what it's worth, I'm not a fan of editing downloaded packages. I have the same thing at my end, but I just deleted the data-dismiss="alert"
portion of the close button. Then, basically the same code as Nintin is used to hide the warning.
HTML code
<div id="AddAlert" class="alert alert-block" style="display:none;"> <button type="button" class="close">×</button> <h4 id="AddAlertH4">Error</h4> <div id="AddAlertMessage">My error message goes here.</div> </div>
Js code
$(".close").click(function(){ $("#AddAlert").hide(); });
I also dynamically populate my error messages using PHP, but I did not draw it here, as it is not part of the question.
source share