G
G
genamur2020-05-05 18:15:09
JavaScript
genamur, 2020-05-05 18:15:09

How to make a div (notification with a button) close temporarily or completely close?

I want to make a notification so that it closes for a while or forever, so that when the page is updated \ switching to another and back, this notification does not appear. Here is the code, it would be desirable to do so that if the user is registered, then there was no notification, can you help somehow?

/**
   * Закрытие уведомления
   */
  $(document).ready(function(){
  $('body').on('click', '.close-me-button', function(){
    $(this).hide();
   
  });
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2020-05-05
@genamur

https://learn.javascript.ru/settimeout-setinterval
+ Cookies\SessionStorage\LocalStorage\DB

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question