slash197
slash197

Reputation: 9034

jquery multiple row selection

Is it possible to select objects with jquery the same way you select files on windows/mac? I mean drag the mouse and whatever is under the created rectangle gets selected.

Upvotes: 2

Views: 1381

Answers (5)

vorillaz
vorillaz

Reputation: 6276

Yes it is possible as it is mentioned you can use JqueryUi functionality Check also a simple example using core functionality

Example

Upvotes: 1

Giorgio Minardi
Giorgio Minardi

Reputation: 2775

Yes you can, have a look at this example

Upvotes: 0

Koray S.
Koray S.

Reputation: 106

i would suggest "selectable" of jQueryUI.

http://jqueryui.com/demos/selectable/

Upvotes: 0

Emmanuel N
Emmanuel N

Reputation: 7449

jQuery UI draggable and selectable will do it for you.

Upvotes: 3

PinnyM
PinnyM

Reputation: 35531

You can use the jQueryUI library together with jQuery to do what you want - see http://jqueryui.com/demos/draggable/ and http://jqueryui.com/demos/droppable/

There may be other jQuery plugins that can give you similar behavior to this as well, but I recommend jQueryUI as it would likely be maintained the best.

Also, be warned that it's not dead simple to do - this does require a good understanding of jQuery and javascript in general.

Upvotes: 2

Related Questions