tags:

views:

23

answers:

1

finding the four values of the corners of the div area

+2  A: 

relative to the document:

var offset = $('#div').offset();
var x1 = offset.left;
var y1 = offset.top;
var x2 = x1 + $('#div').width();
var y2 = y2 + $('#div').height();
colinmarc