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 has plugin modifications.
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
If you want to select multiple elements and MOVE THEM ALL to another list, this fiddle works well:
HTML:
Javascript:
CSS:
This was modified from the example at http://www.pieromori.com.br/snippets/sortable_with_selectable.html thanks to Piero Mori.
http://jsfiddle.net/t9YTB/
This is as much as i can give u :) but the idea is there. its not alllll complete but hopefully u can play about with the values and see how it goes from there :)
Just found this very easy solution from rdworth:
CSS:
HTML:
Javascript:
See: this fiddle.
Part of my jQuery base-arsenal includes the following, as it's usually annoying when you go to drag something and end up selecting text instead...
Not sure if you can just flip the "disable" to "enable", but there's my $.02. Without trying it though.. common sense suggests that you may need to define an inactive section within the same "group" element, to provide a "handle" for the drag action.... or else those clicks may relentlessly be mistaken as the intent to select/edit...
Try this. You can use
Ctrl + Click
for multi select and sortinghttp://jsfiddle.net/r83vrm0q/