You can extend jQuery and add a function down()as follows:
(function($) {
$.fn.down = function() {
return $(this[0] && this[0].children && this[0].children[0]);
};
})(jQuery);
Thus, you do not need to change anything in the code.
jsFiddle.
jsPerf.
, , , ( 40% 70% ).
EDIT:
, . ( 25%)
(function($) {
$.fn.down = function() {
var el = this[0] && this[0].firstChild;
while (el && el.nodeType != 1)
el = el.nextSibling;
return $(el);
};
})(jQuery);