javascript - How to make alerts fade out in Bootstrap 3? -


i'm using bootstrap alerts,i tried multiple ways make them fade out didn't work. code:

<div class='col-sm-7 alert alert-success' id='alrt' role='alert'> <i class='fa fa-check fa-fw'></i> <b>etudiant ajouté avec succés</b> </div> 

the alert show automatically when opening page.

you can add '.in' class, alert fade out.

<div class="alert alert-info fade in"> <a class="close" data-dismiss="alert" href="#"></a> <p>message inside alert goes here</p> </div> 

Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -