[jQuery] clone() help

2008-04-30 Thread Waz and Elle
Hi, I'm new to jquery and went over quite a few tutorials -- some work great for me, with no problems at all. But I'm having trouble with the .clone() method. I am trying to build an order form, and have a button#add, which when clicked I want it to add another div.product-template (that in

[jQuery] clone help

2008-01-17 Thread Lionel Martelly
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 a

[jQuery] clone help

2008-01-17 Thread Lionel Martelly
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)