<div class="element1">Div A</div> <div class="element2">Div B</div>
.element1:hover + .element2 { color: red; }
HTML
CSS
JS