I have a scenario where two divs are located in separate containers. My goal is to drag div2 in container2 while moving div1 in container1. The 'left' property for both divs should remain the same at all times.
I can currently drag each div individually using the 'draggable' function. Additionally, I am able to move div2 while dragging div1 by setting the left property of div2 equal to the left property of div1 when the 'draggable stop' function is triggered. However, this synchronization only occurs after the drag event ends.
Is there a method to ensure that div2 moves simultaneously with div1 throughout the drag process?
To better understand my objective, please refer to the following JSFiddle link: http://jsfiddle.net/37Wkd/16/