Below I have two jQuery selectors.
First, the DOM element is searched in the cached object, and then its parents are searched, then it binds the parents (table) to another dom element. (example 2)
The second (2 lines) searches through the cached item. (example 1)
$('element', table.setting.body).on('blur focus', table.focus).parents('parent').find('another element').on('click', function); // ex2 $('element', table.setting.body).on('blur focus', function); // ex 1 $('another element', table.setting.body).on('click', function); // ex 1
Which one is faster / better?
Ex. 1, no doubt, will be faster to repeat jQuery functions, i.e. .hide().animate().show() , but when does this happen when looking for DOM elements?

jquery
Christian werther
source share