JQuery Function Do something - Pause - Do something else
<p>I am creating a function where I could execute some jquery code ...then pause for say... 5 secs and then execute something else..</p>

<p>Something like this:</p>

<pre><code>function myFunc() {
    var str1 = 'This is the starting text';
        var str2 = 'This is the ending text';
          $("#label").html(str1);

        //I need a pause here (5000 ms) ---

          $("#label").html(str2);

}
</code></pre>

<p>How can I get a pause in there?</p>
