I know it has been a while, but this issue has recently overheard me too. As already mentioned, you need to re-run .draggable()
for the newly created item, but this will not work if you defined certain parameters in .draggable()
. In addition, what did not work is to put $().draggable()
in the function, and then call the function after creating a new element (this trick, however, works with droppables - go figure reset).
In any case, the long story is short -> Putting $().draggable()
into the function, and then calling the function after creating a new DID WORK element, but I had to TAKE OUTPUT from the document ready
function ..... after I turned it off , he worked.
You can call this function so many times, and it continues to work after each created element. It seems if this is in the document.ready
statement, then this is a one-time deal.
Hope this helps.
source share