jQuery UI sortable & selectable

前端 未结 5 422
难免孤独
难免孤独 2020-12-13 02:45

Does anybody know how to combine jQuery UI selectable and sortable ? This script: http://nicolas.rudas.info/jquery/selectables_sortables/ doesn\'t work in Chrome and it also

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 03:10

    If you want to select multiple elements and MOVE THEM ALL to another list, this fiddle works well:

    HTML:

        
    jQuery UI Sortable with Selectable
    
    
    
    
    
    
    • 1- First
    • 2- Second
    • 3- Third
    • 4- Fourth
    • 5- Fifth
    • 6- Sixth
    • 7- Seventh
    • 8- Eighth
    • 1- 1
    • 2- 2
    • 3- 3
    • 4- 4
    • 5- 5
    • 6- 6
    • 7- 7
    • 8- 8
    another album - no style for the lists inside here

    Javascript:

    
    

    CSS:

    
    

    This was modified from the example at http://www.pieromori.com.br/snippets/sortable_with_selectable.html thanks to Piero Mori.

提交回复
热议问题