How can I select an item based on its position?
Something like this might work:
var el = document.elementFromPoint(100, 100);
var $el = $(el); // if you really want to use jQuery.
Documentation for document.elementFromPoint.
This may not be what you are looking for: it will receive only the visible, topmost element at this point, and it will receive any element occupying this space, and not just the one whose upper left corner is at this point. But most likely it will help :).
It is supported by all major browsers , although you can get ridiculous results with Safari 4 or Opera 10.10.
The jQuery function css()allows you to get the value of CSS properties, for example, css('left')returning the left position of your element.
However, in your question, you are about choosing a div element based on its location. I suppose you mean something like that $('left=100px'). It's impossible. jQuery uses CSS selectors that query the structure, not the DOM style.