Call function with setInterval in jQuery?
<p>I'm trying to create a interval call to a function in jQuery, but it doesn't work! My first question is, can I mix common JavaScript with jQuery? </p>

<p>Should I use <code>setInterval("test()",1000);</code> or something like this:</p>

<pre><code>var refreshId = setInterval(function(){
    code...
}, 5000);
</code></pre>

<p>Where do I put the function that I call and how do I activate the interval? Is it a difference in how to declare a function in JavaScript compared to jQuery?</p>
