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 tsTi开发者_开发百科meStamp= 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.
An easy way in 1.4:
$('#deletesuccess').delay(10000).fadeOut();
You can also abort this easily if needed:
$('#deletesuccess').stop(true, true);
Use setTimeout for this.
setTimeout(function(){ 
    $("#deletesuccess").fadeOut("slow"); 
  }, 10000 ); 
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论