# Drop\_receiving\_element - how to get ID of droppable?

**URL:** <https://www.ruby-forum.com/t/drop-receiving-element-how-to-get-id-of-droppable/173317>\
**Category:** Rails\
**Created:** [August 6, 2009, 7:59pm UTC](https://www.ruby-forum.com/t/drop-receiving-element-how-to-get-id-of-droppable/173317 "2009-08-06T19:59:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drrrrrr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b77776/32.png) [@Drrrrrr](https://www.ruby-forum.com/u/Drrrrrr)\
**Post date:** [August 6, 2009, 7:59pm UTC](https://www.ruby-forum.com/t/drop-receiving-element-how-to-get-id-of-droppable/173317/1 "2009-08-06T19:59:48Z")

</div>

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?
