I hope this is the place to ask this...
I have 2 elements (div rectangles) inside a container.
they are dragable and resizeable.
I need to limit them so it won't be possible to put one element on the other -
if by dragging or resizing.
how do I do so in javascript?