Advertisement
tukangbegal

Auto Hide Notification Alert Laravel 8

May 18th, 2022
798
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  2.  
  3. <div class="alert alert-danger">
  4. This is an example message...
  5. </div>
  6.  
  7.  
  8. <script type="text/javascript">
  9.  
  10. $(document).ready(function () {
  11.  
  12. window.setTimeout(function() {
  13.     $(".alert").fadeTo(1000, 0).slideUp(1000, function(){
  14.         $(this).remove();
  15.     });
  16. }, 5000);
  17.  
  18. });
  19. </script>
Advertisement
RAW Paste Data Copied
Advertisement