0

i have this code that creates a div, adds id and appends the div. I am trying to drag that div but its not working like it should.

$("<div class='twin_seat' style='width:120px;display:table-row;'></div>")
.attr('id', twinseatsid)
.appendTo(cinema)
.draggable({ 
    containment: cinema,
    snap: true,
    helper: 'clone'
});

im using helpe: clone because i just want to visually see the element being dragged because when looking at the developer console the div does get dragged but it doesnt stay where it gets dragged to; that's the issue. help please. TIA.

Edited by nadiam

1
Contributor
1
Reply
9
Views
2 Years
Discussion Span
Last Post by nadiam
0

solved this. had to rewrite some parts of the coding.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.