In this line:

         var id ='_').last();

the id of the list item containing the remove link must be constructed  
like this:


where 123 is the numerical ID from the database of the element you  
wish to remove.

All of this is predicated on the initial clone process working  
correctly. If you look at each of your clones in Firebug (inspect  
element) do you see each one having a unique ID constructed like the  
above? Or do they all have the same ID: clone_, clone_, clone_, etc.?  
If that's the case, you need to step back to the stage where you added  
these clones, and figure out why your initial Ajax request didn't  
return a valid ID number.


On Jul 20, 2009, at 2:00 PM, Yan Kovyakh wrote:

> Seems like something is wrong, maybe it’s not sending the id at all,  
> when I look at it in firebug XHR at the POST remove_clone.php in the  
> post tab I see “clone”, shouldn’t there be a value to for the id?
> >

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to