How to get unique id of a draggable element?
Hello,
I have a page with a number of thumbnails and each thumb has class
'block' and a unique id. Using the code below (from the droppables
demo) I made a droppable that accepts the draggable thumbs. I can get
the id via attr('id'), but the problem is that it's the same (the
first) id for all thumbs I drop. How do you get the unique id of a
thumb?
Oh, what should happen is that when a thumb is dropped, the id is used
to indicate that this is the thumb for this album. The id gets posted
to the db.
Thanks in advance!!
<img class="block" id="<?=$img->photo_id?>" src="<?=../photos/<?=$img-