Using Mouseenter / MouseLeave to Change Div in JavaScript
问题 I am trying to use an array index to allow a set of div IDs to change from one ID to another when the mouseenter and mouseleave functions are triggered. I know there are other ways to do this - toggle, hover, or CSS hover. This is just learning for me, and I am very new. The code below is commented, and the basic problem is related to why an array variable of "largeID" (or smallID) outputs the proper values, but trying to use an index value doesn't. For each for statement, I want the smallID