$('h2').hover(function() { var img = $(this).parents('.post').find('img'); img.css({...}); //делаешь что нужно });