title: Jquery making div fadeout with timer
body: <p>Looking to make a div fadeout after 10 seconds.</p>
  
  <p>Tried various things but can't get the timer working.</p>
  
  <p>This is the code:</p>
  
  <pre><code>$('#deletesuccess').show();
  </code></pre>
  
  <p>Edit:</p>
  
  <p>This is the full code:</p>
  
  <pre><code>    function refreshTable() {
          //timestamp to get around ie caching issue
  var tsTimeStamp= new Date().getTime();
  
  
  $('#deletesuccess').show().fadeOut();
  
  
  
  $.get('table.php',
        {action: "get", time: tsTimeStamp},
        function(data){
          $('#customertable').html(data).fadeIn();
        });
  return true;
  }  
  </code></pre>
  
  <p>I need to show the div and then hide it after x amount of seconds.</p>