title: Reload div and set events in jQuery
body: <p>I try to load a div via jQuery and I want to set a click-event on a dynamically created element that makes a request to a php-script and then reloads the div.
  Unfortunately the Events aren't set after the reload.
  My Code so far looks like this:</p>
  
  <pre><code>$(document).ready(function () {
      $("#incomplete").load("incompleteTasks.php", '', function () {
              //Setting Click-Events
              $(".btn_aufg").click(function () {
              window.alert($(this).attr("id"));
              var encoded = encodeURIComponent($(this).attr("id"));
              //Marking Task as completed...
              $(this).load("taskworker.php?action=complete&amp;id=" + encoded);
              //reloading div
              $("incomplete").load("incompleteTasks.php");
      });
  });
  </code></pre>
  
  <p>});</p>
  
  <p>How can I activate the Event again after the user has clicked on a button?</p>