title: Pop up a notification div that fadesOut after 1 sec in jquery
body: <pre><code>notDiv=$("&lt;div&gt;&lt;/div&gt;");
      $(notDiv)
          .attr("id", "notification")
          .html("Item added to shoppingCart successfully")
          .appendTo("#main");
  
      $(notDiv)
          .fadeIn()
          .delay(1000)
          .fadeOut()
          .remove();
  </code></pre>
  
  <p>I want to pop up a notification div when a merchandise is selected.</p>
  
  <p>but the div does not appear on the screen!!</p>
  
  <p>Where have I done wrong?</p>