Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Copy & Drop instead of Drag & Drop

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #247744
    triplebit
    Participant

    I refer to

    http://jsfiddle.net/DKBU9/14/

    I want to drag and drop an element from one table to the other but leave a duplication of the original in its place.
    At the end there should be two similar elements.
    Is it possible and how?
    Thx
    I. Lesher

    #247763
    Shikkediel
    Participant

    Changing this bit of the function seems to that:

    stop: function(event, ui) {
      $('.dragging').removeClass('dragging');
      if($(this).hasClass('new')) {
        var clone = $(this).clone(); 
        clone.empty();
        $(this).after(clone);
        $(this).removeClass('new');
        initDroppableSort( clone );
      }
    

    http://jsfiddle.net/g3603Luy/

    #247764
    triplebit
    Participant

    Thx

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.