views:

74

answers:

2

Hi,

Working on a drag and drop feature and I would like to know/have an opinion on how you can tell if an element, in this case a div tag, is position (via the drag) over another element?

Thanks, R.

A: 

Are you writing straight Javascript, or using an external library that already implements drag-n-drop, like Scriptaculous?

Dean J
+1  A: 

You should look into a framework such as jQuery to handle things like this easily, however if you want to learn exactly how it works, Quirksmode has a good tutorial on drag and drop (probably more information then you want).

evolve