PDA

View Full Version : How use class instead id for identify a draggable content



clout26
19 Oct 2011, 11:48 AM
I want now if its possible to use class to define a draggable content ?



<div id="droppableZone1" class="draggable" >Droppable</div>


<div id="sqaure1" class="draggable">Draggable 1</div>
<div id="sqaure2" class="draggable">Draggable 2</div>
<div id="sqaure4" class="invalid">Draggable 3</div>


instead of



<div id="droppable" >Droppable</div>


<div id="draggable">Draggable 1</div>
<div id="draggable">Draggable 2</div>
<div id="invalid">Draggable 3</div>


Like this : http://dev.sencha.com/deploy/touch/examples/dragdrop/


Thanks for ure help!