title: Determine if an element is within bounds?
body: <p>I'm trying to figure out how to select certain Elements within a selected rectangle. The current method loops all elements and gets their X/Y if they are greater than rectangle's X/Y and less than rectangle's H/W then it gets selected. The problem with this method is, the rectangle has to be less than the Elements X/y EVEN though half of the element is inside the rectangle. Is there a nice jQuery solution to this, like find out if an element is inside the rectangle or even a tiny bit of it is inside? or maybe an easier approach with JavaScript?</p>