title: Hide a div in Flask
body: <p>I'm making a website with flask in python. And I want to hide some divs with the class='alert-warning in the page 4 seconds later the div be loaded. But I have no experience with javaScript so I can not do this.
  This is the code of my div:</p>
  <pre><code>    {% for message in get_flashed_messages() %}
          &lt;div class='alert-warning' id='{{message[:4]}}'&gt;
              &lt;p class=&quot;alert-content&quot; id='{{message[:4]}}'&gt;
                  {{message}}
              &lt;/p&gt;
          &lt;/div&gt;
      {% endfor %}
  </code></pre>
  <p>So in short I want help to hide the div.alert-waring in four seconds.</p>