jquery auto refresh mutiple divs at different intervals

jquery auto refresh mutiple divs at different intervals

I have tried the following for jquery auto refresh of multiple DIVs at different intervals for each div. But the refresh is happening only for first div and other DIVs are ignored. Can anyone help me for a solution?

$
(document).ready(function() { $(".div1").load("load1.php"); var refreshId = setInterval(function() { $(".div1").load("load1.php"); }, 8000); $(".div2").load("load2.php"); var refreshId2 = setInterval(function() { $(".div2").load("load2.php"); }, 9000); });