Thank you Karl. I will be more careful next time.
-----------------------------------------------------------------------------
The below
$('#$id').hide().bla-bla.appendTo('#verticals').show();
does not work for me because since it is not removed, when you submit it is
still part of the array and creates double values.
----------------------------------------------------------------------------------------------------------------------------------------------
$('#$id').remove().clone(true).appendTo('#verticals');
is wrong. because of remove() (it kills everything because of memory IE leaks).
you sould use this chain instead:
$('#$id').appendTo('#verticals');
or somethin like that:
$('#$id').hide().bla-bla.appendTo('#verticals').show();
2008/1/17, Lionel Martelly <[EMAIL PROTECTED]>:
>
> I read somewhere that events must be bind when cloning so I remove the
> parent. Please how do I bind the context menu?
>
> $('#$id').contextMenu('chooser', {
> bindings: {
> 'vert': function(t) {
> $('#$id').remove().clone(true).appendTo('#verticals');
> },
> 'horiz': function(t) {
> $('#$id').remove().clone(true).appendTo('#horizontals');},
> }
> });
>
> I am also loosing the draggable/sortable. I do not know how to bind it.
>
> Thank you.
_______________________________
Lionel Martelly