OK, again I need some help: I can success print ui.draggable to console, but how to convert it to string? I need to write it into some element with .innerHTML and I will probably use it in "for" loop...
Any your comment will be helpfull. On Aug 24, 2:45 am, Boris Trivic <trivu...@gmail.com> wrote: > Brett thanks for your help, I success founded solution deeper on link > that you posted. > If someone needs, here is code: > > $(".place").droppable({ > drop: function(e, ui) { > console.log(ui.droppable); > } > > }); > > This code writes in console (if you use Firebug), which element is > dragged (id of that el.). You can customize code for your needs... > > On Aug 20, 4:30 am, Brett Ritter <swift...@swiftone.org> wrote: > > > On Wed, Aug 19, 2009 at 11:07 AM, Boris Trivic<trivu...@gmail.com> wrote: > > > When I take on of draggable divs and put it on 3rd div (fixed), how I > > > can get ID of that div which is dragged on 3rd div. > > > Ah! Now I understand. (Good examples). > > > Sadly, Drag-and-drop is not something I've played with. However, from > > looking at the jqueryUI docs, it appears what you are looking for is > > the "Droppable" plugin, which receives "draggable" objects: > > >http://jqueryui.com/demos/droppable/ > > > Hope that helps! > > > -- > > Brett Ritter / SwiftOne > > swift...@swiftone.org