Reputation: 9034
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
Reputation: 6276
Yes it is possible as it is mentioned you can use JqueryUi functionality Check also a simple example using core functionality
Upvotes: 1
Reputation: 106
i would suggest "selectable" of jQueryUI.
http://jqueryui.com/demos/selectable/
Upvotes: 0
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