When is the function executed when using jQuery .each()?
<p>Given the following jQuery expression</p>

<pre><code>    $("form").each(function () {
        var info = validationInfo(this);
        if (info) {
            info.attachValidation();
        }
    });
</code></pre>

<p>The selector chooses all forms on the page, and then for each 'form' found, it attaches a function.</p>

<p>My question is when does the JS in this function actually run?  Does the JS in the function execute when it is attached?</p>
