jQuery - Call function when dropping div
<p>I want to run function <code>insertHouse()</code> when dropping div#Draggable. I can't manage to make it work. You can see me trying to call it in the second line from the bottom. What am I doing wrong?</p>

<pre><code>&lt;img src="images/door1.jpg" id="draggable"&gt;
&lt;div id="items"&gt;&lt;/div&gt;

// Place house;
function insertHouse()
{
blablabla
}

$( init );

function init() {
  $('#makeMeDraggable').draggable();
  $('body').droppable( {
    drop: handleDropEvent
  } );
}

function handleDropEvent( event, ui ) {
  function insertHouse();
}
</code></pre>
