Page 1 of 1

Drag & Drop - need for cloned nodes to have different ID

PostPosted: Thu Sep 16, 2010 7:20 pm
by lostmarble
I am using the Drag & Drop to columns script and LOVE it... makes for a very impressive application. BUT I have a problem that I can't seem to figure out. I want to run a PHP script using Ajax when I copy a node from the source column to the boxes that does some tests and then changes the color of the cloned node depending on the result of the php script. I can't seem to make this work because the cloned node has the same ID as the original node. Everything I find when I google "mulitple elements with same id" says that you can't have multiple elements with the same ID and that javascript will only find the first one in the DOM.

I was going to try to modify the code to append a letter onto the cloned node's ID, but it appears that the id's are compared to see if a node has already been cloned and changing the id would mess that up.

Any suggestions???

Thank you!!
Anita

Re: Drag & Drop - need for cloned nodes to have different ID

PostPosted: Fri Sep 24, 2010 2:22 pm
by lostmarble
Still haven't figured this out... anybody??