i m having a problem in appending a tag over an area. I am tring to append the clone of #Normal_Tag1_div to #droppable after changing the id. I also want to make that clone draggable over #droppable only . How can i do that??

           drop: function(ev,ui) {
                    clone = $(ui.draggable).clone();
                    $(clone).attr('id', 'newid'+count1)
                    var title = $(clone).attr('id');

No correct solution


Try this...

$(clone).draggable({ containment: 'parent' });

You can use containment option from jQuery UI Draggable. It restricts the drag to a given div.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow