Forum: Ruby on Rails drag and drop for a form

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris H. (Guest)
on 2009-02-05 03:33
(Received via mailing list)
I am trying to do a drag and drop cards into a shelf.  I am doing this
for the drop:

<%= drop_receiving_element :slot2,{:onDrop => "function(element) {
$('slot2').replace('<td id=\"slot2\">' + + '</
td>').addClassName('cardfill'); }"}  %>

This does not seem to be working.  When I press submit, the id is not
being sent.  Does anyone know how to get something like this to work?
This topic is locked and can not be replied to.