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?
Should I use setInterval("test()",1000); or something like this:
var refreshId = setInterval(function(){
code...
}, 5000);
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?
setInterval(c) Please post your code. If you pass a string tosetIntervalthan it does matter where the function is declared (has to be in global scope) and that is also the reason why you should avoid it.