title: jQuery append HTML contains onclick event
body: <p>I used jQuery to append content to a div, and the content contains ondrop, on dragover, and ondragstart events? How can I handle the events properly, the following does not work:</p>
  <pre><code>&lt;script&gt;
      var html = &quot;&lt;div id=&quot;dragon_id&quot; ondrop=&quot;drop(event)&quot; ondragover=&quot;allowDrop(event)&quot; draggable=&quot;true&quot; ondragstart=&quot;drag(event)&quot;&gt;
              ...&lt;/div&gt;&quot;;
      $(&quot;myDiv&quot;).append(html);
  &lt;/script&gt;
  </code></pre>