[jQuery] Re: n00b question on $().clone

2007-08-16 Thread jenlindner
7; + newId).length == 0) { // doesn't exist in this list yet > $(drag).clone().attr('id', newId).appendTo(this); > > } > > --Erik > > On 8/15/07, jenlindner <[EMAIL PROTECTED]> wrote: > > > > > hi, how does one check for the presence of a

[jQuery] n00b question on $().clone

2007-08-15 Thread jenlindner
hi, how does one check for the presence of a clone? i need to drag copies of items from one list to another, then make the second list sortable. so, i've been using the revert:true inside the draggable and on drop creating a clone of each item - but, i want to prevent cloning the same item twice.