Looking at my HTML
code, I have 4 <div>
elements - 2 represent doors and 2 represent colors based on their respective id
attributes.
My goal is to enable users to drag any color to either door (e.g. blue on the left door and black on the right) and have the background color change dynamically.
<div id="door1" style="background: #fff;"></div>
<div id="door2" style="background: #fff;"></div>
<div id="black"></div>
<div id="blue"></div>
I would greatly appreciate any guidance or direction that can be provided to achieve this functionality.