What is the best way to manage this kind of situation :
$(\'.element\').each(function() { $sibling = // find a sibling to $this. $mainElement = $(
Try with this
$('.element').each(function() { $(this).siblings('.sibling').change(function() { var mainElement = $(this).siblings('.element'); // Play here }); });