title: Create a div dynamically in Javascript
body: <p>How can I create a div dynamically within a function, like this:</p>
  
  <pre><code>&lt;div id="mydiv" class="notice" style="display:none;"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It would be very nice if I could create it also with jquery library.</p>