example...
Div1 (moves with arrow keys and is the top layer)
Div2 (bottom layer)
what I want to try to do is the following:
when Div1 moves over Div2 (if Div1's position = Div2's position) execute code.
the problem I have is I know how to do it as listed above if I know the ID or Div2,3,4 etc, but all the Div's except for Div1 are going to be dynamically generated.
here is a better example: Checkers.
the border is created dynamically (red/black squares)
Now if I move a object above a red square - is there a way using javascript to say detect that the square I moved to is red?
I will know Div1's positioning, but need to know when's it's positioning matching another Div - how to pull that Div's ID or other info.