title: How to "fadeOut" & "remove" a div in jQuery?
body: <p>I'm trying to give fadeout effect to a div &amp; delete that div(id = "notification"), when an image is clicked.</p>
  
  <p>This is how I'm doing that:</p>
  
  <pre><code>&lt;a onclick="$("#notification").fadeOut(300,function() { $("#notification").remove(); });" class="notificationClose "&gt;&lt;img src="close.png"/&gt;&lt;/a&gt;
  </code></pre>
  
  <p>This seems to not be working.
  What do I need to do to fix this?</p>