On Thu, Apr 23, 2009 at 11:56 AM, alex <[email protected]> wrote:

>
> Hi everybody I'm in trouble with clone function. It works with this
> stub of code:
>
> //copy to .dropzone all the array .draggable
> $('.draggable').clone().prependTo($('.dropzone'));
>
> but it doesn't works if i try to copy only one element of it:
>
> $('.draggable')[0].clone().prependTo($('.dropzone'));


$('.draggable')[0] gets a DOMElement, not a jQuery object. Try
$('.draggable').eq(0) instead.

- Richard

--~--~---------~--~----~------------~-------~--~----~
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