jQuery UI Examples - Selectable (Selectable)
Select a single element or a group of elements using the mouse.
For more details about the selectable interaction, see the API documentation Selectable Widget。
Default functionality
Enable selectable functionality on a DOM element or a group of elements. Select items by dragging with the mouse. Hold down the Ctrl key to select multiple non-adjacent items.
jQuery UI 选择(Selectable) - 默认功能
Display as a grid
Make the selectable items display as a grid, using CSS so they have the same size and are floated.
jQuery UI 选择(Selectable) - 显示为网格
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
Serialization
Write a function that triggers when the stop event occurs to collect the index values of the selected items. Display these values as feedback or pass them as a data string.
jQuery UI 选择(Selectable) - 序列化
您已经选择了: 无。