let\'s say I have a markup like this:
... ... ...
and
Actually, $('#id', this); would select #id at any descendant level, not just the immediate child. Try this instead:
$(this).children('#id');
or
$("#foo > #moo")
$("#foo > span")