What is the best way to manage this kind of situation :
$(\'.element\').each(function() { $sibling = // find a sibling to $this. $mainElement = $(
$('.element .sibling').each(function( ind, el) { $parent = $( el ).closest( '.element' ); $( el ).change(function() { $parent.doSomething(); }); });