JQuery implementing if statement issue
<p>I'm trying to put an if statement in the following code. But since I am new at JQuery, I don't know how to put it there. When I uncomment the lines, I am getting an "missing : after property id" error on FireBug. How can I achieve this? Thanks in advance.</p>

<pre><code>$( ".droppable" ).droppable({
  //if ((this.firstChild) != "[object HTMLImageElement]") {
    drop: function( event, ui ) {
      var dropped = ui.draggable;
      var droppedOn = $(this);
      $(dropped).detach().css({top: 0,left: 0}).appendTo(droppedOn);
    }
  //}
});
</code></pre>
