I have the following HTML:
<div id="wrapper">
<div onmouseover="displayDiv()"> <div id="thisIsTheDivToDisplay"></div </div>
<div onmouseover="displayDiv()"> <div id="thisIsTheDivToDisplay"></div> </div>
<div onmouseover="displayDiv()"> <div id="thisIsTheDivToDisplay"></div> </div>
<div onmouseover="displayDiv()"> <div id="thisIsTheDivToDisplay"></div> </div>
</div>
I want to display the div
inside, when I mouseover
it's parent div
. But I'cant use ID's, because the number of div's is random (depends on values in database). Is there any way in JavaScript to display that only child div
(depending on div
I mouseover)?