I use the same element in my function several times. For example:
var myElement = jQuery('#some_div_with_good_id');
var myChildren = jQuery('#some_div_with_good_id span');
So how I can optimize this code for shorten second variable? I tried:
var myChildren = jQuery(myElement, 'span');
but this not works :( I'm new in jQuery, so sorry if you think it is stupid question.
jQuery('span', myElement);