Well, selecting is already shown in selectables
(http://interface.eyecon.ro/demos/select.html), so I'm not going to go into
that, but you could group these elements by giving them all a related class
from which to drag.

For example, here are 5 different elements:

<div id="foo" class="box1">blah</div>
<div id="fooey" class="box2">blagh</div>
<div id="foofoo" class="box3">blargh</div>
<div id="fee" class="box4">blahfeeb</div>
<div id="feefee" class="box5">blahfoo</div>


All are different in every way (except that that are all divs).

Soo...

Let's say that when you select an element, you change the class of each
element by appending a class onto the end.

So, by selecting the second, third and fifth element, your divs are like
this:

<div id="foo" class="box1 divselect">blah</div>
<div id="fooey" class="box2">blagh</div>
<div id="foofoo" class="box3 divselect">blargh</div>
<div id="fee" class="box4">blahfeeb</div>
<div id="feefee" class="box5 divselect">blahfoo</div>

They then share a similar div class which could then be applied to the
draggable function.


Danial Taherzadeh wrote:
> 
> Hey All,
> 
> I am pretty new to jQuery (though used scr+proto much).
> 
> I was wondering how to solve such a task:
> 
> There are several DIVs, like pictures. User uses the mouse to select
> some of the pictures and then drags them to trashcan. All parts I can
> do except how to make the selected pictures draggable and move them
> all together.
> 
> All your ideas are highly welcome.
> 
> Regards,
> Danial
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dragging-multiple-selected-items-using-selectables%2C-idrag-and-idrop-tf2450570.html#a6831640
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to