Can table rows be made draggable?

前端 未结 3 1686
别那么骄傲
别那么骄傲 2020-12-01 05:34

I have two divs that are float:left:

3条回答
  •  無奈伤痛
    2020-12-01 05:43

    A simpler solution based on Simen's demo: http://jsfiddle.net/UBG9n/927

    There is no need for reference to the tr we have dragged, because jQueryUI offers ui.draggable and ui.helper which we can use to clean up dragged element and a helper:

        $(ui.draggable).remove();
        $(ui.helper).remove();`
    

提交回复
热议问题
Alexander Graham Bell