Draggale Drop an object over an Image

0

Well, I'm trying to use the jQuery Drag feature and I'm having 2 difficulties ...

The first one is that my object is disappearing .. the "CLONE" feature that Draggable has does not actually clone .. and the second problem is that my object is not going over the image. >

To understand better, I'm putting my code below:

<div class="draw_options" style="width: 400px;height: 150px;">
     <img id="vehicle_draw" class="draw__image" src="" alt="">
</div>

<div class="options-dragg">
 <img class="dragg_options" src="img/m.png" height="30"> 
 <img class="dragg_options" src="img/a.png" height="30"> 
 <img class="dragg_options" src="img/c.png" height="30"> 
</div>

My Javascript is instantiated this way ... but it is not working ... The item M.png for example does not clone, nor is it dragged on top of the parent image .. when I remove the HELPER: CLONE yes it works , but the object M for example I can only put 1 in the PAI image.

$(".draw_options").droppable();
$(".options").draggable({ helper: 'clone' });

asked by anonymous 15.09.2018 / 02:09

0 answers