Drop_receiving_element - how to get ID of droppable?

I want to know how to get the id of the dropped-in-element. I already
have this code:

<%= drop_receiving_element(“drop”, :onDrop => “function() { set_image
(), delete_drag(element.id) }”) %>

but its not working. Firebug tells me that element is not defined -
why that? Any ideas how to fix it?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs