Get an Attr of a Droppable and a Draggable
Hi everyone !
Here is my problem :
I have 2 div :
<div id="draggable" info="test drag"> </div>
<div id="droppable" info="test drop"> </div>
I want to get the "info" attribut of "draggable" AND "droppable" when
I drop "draggable" on "droppable".
Here is my code :
$("#droppable").droppable({
drop: function() {
alert('info droppable = ' + $(this).attr("info"))
}
});
[ this code make an alert with "info droppable = test drop" wich is
good.]
With that, I manage to get the "info" attribut of "droppable" but not
the one of "draggable"...
Any idea ?
Thanks in advance !
--