Move one object to the position of another
I have two object
<div id = "object1"></div>
<div id = "object2"></div>
These "object" are setting with style property like:
<style>
#MyObject2 {
top: 700; left: 400px; width: 70px; height: 70px;
position: absolute;
background-image: url(http://xxx1.png); background-size: cover;">
}
</style>
And so on.
I need a function that permit with a mouseclick to move the object2 to the place of the object1.
How it is possible to do?
Thanks and Happy Easter to all!!
