I know this isn't a code issue related question, but it's something I'd love to know and it may help others:
What's the difference between using this:
$(function() {
var $fullArea = $('#full-sized-area');
var $fullContent = $('#full-sized-content', $fullArea);
});
Over say this:
$(function() {
var $fullArea = $('#full-sized-area');
var $fullContent = $('#full-sized-content, #full-sized-area');
});
#full-sized-contentunder the element$fullArea, so if that element is not contained in$fullArea, you receive an empty jquery object. While the second always returns 2 objects of#full-sized-contentand#full-sized-area. Of course those ids should exist in the HTML code.