Possible Duplicate:
Javascript sleep
How to delay execution in between the following in my javascript
Hi i want to change html of two divs. But have pause between it
$(#div1).html('Div1 content');
$(#div2).html('Div2 content');
//wait 5 seconds
$(#div1).html('Div1 new content');
//wait 5 seconds
$(#div2).html('Div2 new content');