I have done successfully moved a image with arrow keys but now i want getting id behind the moved image. And here i want all div id when image overlap.
html
<div id="box2"></div>
<div id="box3"></div>
<div id="box4"></div>
<div id="box5"></div>
<img id="image" src="http://placekitten.com/69/69" style="position:absolute;left:0; top:0; z-index: 1;" height="15" width="15">
css
body{background:yellow;}
#box2,
#box3,
#box4,
#box5 {
width: 50px;
height: 50px;
background: greenyellow;
position: absolute;
top: 50px;
left: 50px;
z-index: 2
}
#box3 {
top: 150px;
left: 150px;
}
#box4 {
top: 50px;
left: 250px;
}
Please check demostration link