Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
- <div class="alert alert-danger">
- This is an example message...
- </div>
- <script type="text/javascript">
- $(document).ready(function () {
- window.setTimeout(function() {
- $(".alert").fadeTo(1000, 0).slideUp(1000, function(){
- $(this).remove();
- });
- }, 5000);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement