<div class="news">
<div class="news-item"></div>
<div class="news-item"></div>
<div class="news-item"></div>
</div>
<div class="news-info">
<div class="info-item"></div>
<div class="info-item"></div>
<div class="info-item"></div>
</div>
Hi! I have a html code just like the above. How can I trigger click event (using jQuery) on each 'info-item' element from 'news-info' div by clicking each element from the above 'news' div? I mean: when I click the first news-item to trigger click event on the first info-item and the same for the second and the third. I tried something like that:
$( ".news" ).each(function() {
$(this).find( "news-item" ).on('click', function() {
$('.news-info').find('.info-item').trigger('click');
});
});