function test6() { $('.tes').load('server.jsp .testp'); } $(document).ready(function () { window.setInterval('test6()',1000); });