I’m not quite sure how to explain this properly.
What I want is select a element and it’s childs like
$('div#foo');
and then work on with this set, so that jQuery only knows about this set, so it would be something like this:
$('div#foo').function() {
$('div#firstChildOfFoo').attr('width');
// DO OTHER STUFF WITH THIS SET.
}
How can I achieve this?
DEMO fiddle 1