views:

24

answers:

1

I have a bunch of divs (i'll call them items). Most have an image in them but having an image doesnt matter. How can i select these items, have the item show some way of being selected (i was thinking having padding which changes color?) and allow me to add more by hold ctrl and left click or by left clicking which creates some kind of mouse box and let me to draw a rect over the items i want to select.

I hope theres a JS container or lib that handles this, what can i use to do the above?

+5  A: 

If you're OK using jQuery and its UI library I'd recommend using this: http://jqueryui.com/demos/selectable/#default

evaneykelen