Finding the name of "this"
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2236028/jquery-finding-the-name-of-the-element-i-have-a-reference-to">jquery - finding the name of the element I have a reference to</a>  </p>
</blockquote>



<p>I have a small problem with droppables / draggables. </p>

<p>is it possible to get the id of a dropped div if all you have is </p>

<pre><code>$(this) 
</code></pre>

<p>coming in at the helper section. eg something like this:</p>

<pre><code>$("#"+ place).droppable({ accept:  tile,  drop:  handler,  zIndex: 0 }); 
</code></pre>

<p>... </p>

<pre><code>function handler(event, ui){ 
 $(this).css('background-image','url(pretzel-icon-clip-art.jpg)');
 $(ui.draggable).remove();  
}
</code></pre>

<p>I have several tiles dragging so differentiating between them is becoming useful.</p>

<p>Any help appreciated, </p>
