Jquery making div fadeout with timer

Posted by nharry on Stack Overflow See other posts from Stack Overflow or by nharry
Published on 2010-03-11T13:12:07Z Indexed on 2010/03/23 6:03 UTC
Read the original article Hit count: 364

Filed under:
|
|
|

Looking to make a div fadeout after 10 seconds.

Tried various things but can't get the timer working.

This is the code:

$('#deletesuccess').show();

Edit:

This is the full 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;
}  

I need to show the div and then hide it after x amount of seconds.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery