Refreshing div content with jquery
<p>Hy everione, i am tryng to reload the content of a div withowth actualy refreshing the page, the problem is that i just need to reload the div not to load another different page. I've been trying to use the code below but it dosn't load the div i need and it ghet's stuck in a loop after first refresh ( refreshing every 1 sec ). Or is there any way to restart a jqeury animation every 5 sec ?</p>

<pre><code>    var refreshId = setInterval(function(){ 
         $('#wrapper').fadeOut("slow").load('../index.php#wrapper').fadeIn("slow");
    }, 5000);
</code></pre>
