Select a set and work on with this set within a scope (or function)
<p>I'm not quite sure how to explain this properly.
What I want is select a element and it's childs like</p>

<pre><code>$('div#foo');
</code></pre>

<p>and then work on with this set, so that jQuery only knows about this set, so it would be something like this:</p>

<pre><code>$('div#foo').function() {
    $('div#firstChildOfFoo').attr('width');
    // DO OTHER STUFF WITH THIS SET.
}
</code></pre>

<p>How can I achieve this?</p>
