Is there any method in jQuery to select all element located at a particular position for example select the element that is located at left:100 and top:300 and another div is located at same position, on click I want to get ID's of both Div?
It would be nice if I could select and element located in a range of positions,
http://jsfiddle.net/simmi_simmi123/YjC6y/1908/
This Fiddle but its showing ID of only top div.
$(document).ready(function(){
$(document.body).bind('click', function(e){
var elem = document.elementFromPoint(e.pageX, e.pageY);
alert('you selected element id: ' + elem.id);
});
});