Prompt why delegation does not work? There is a block with a class .team-item. It is necessary that when you hover on any part of it, the text changes color. The text has a class .name-description. The js and jq files are connected at the end of the body. The js file is written like this:
$('.team-item').on('hover', function() { $('.name-description').css("color", "#00e0d0"); });
.team-itemdoes not delegate anything. Delegation is achieved by passing the second argument with the CSS selector, which will be the target of the handler. And at the head of the corner ($(...).on(...);) should be the parent. - user207618