Created
October 14, 2016 14:31
-
-
Save dstegelman/ccac371dc97e13f85269c7fbb5c83bf3 to your computer and use it in GitHub Desktop.
Auto dismiss bootstrap alert messages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
autoRemoveAlert($('.alert')); | |
function autoRemoveAlert(alertElement) | |
{ | |
alertElement.fadeTo(2000, 800).slideUp(800, function () { | |
alertElement.slideUp(800); | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment