Javascript check if mouse is over one of several elements
<p>So I have several elements in a page that I want to behave in the same way when hovered (I specifically want to change their class). Instead of adding a onmouseover listener to all of them one by one, is there a more efficient or cleaner solution?</p>

<p>I tried using onmousemove with e.target, but the problem is I have nested elements and sometimes it often targets the wrong one.</p>

<p>Thanks in advance!</p>