Okay, I got that to work, thanks.   Now, if I drag the LI out of the
receiving Div it leaves a space in the list.    Is there a way to
collapse the holes?

On Dec 16, 2:58 am, "Richard D. Worth" <[email protected]> wrote:
> The element being dragged is available to your drop callback in
> ui.draggable. Since it's an LI, you'll want to grab .html() or .text() from
> it, unless there's a UL inside your div you can append it to.
>
> - Richard
>
> On Mon, Dec 15, 2008 at 4:18 PM, marr <[email protected]> wrote:
>
> > I can drag LI items onto a Div.  Now I would like the Div to display
> > the LI text, or, variable values.  How do I access the object
> > properties?
>
> > Thanks, in advance,
>
> > $("li").draggable({helper: 'clone'});
>
> > $(".drop").droppable({
> >        accept: "li",
> >        drop: function(ev, ui) {
> >                   ...Insert code here...
> >        }
> > });
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to