title: Scripts no longer work after ajax request
body: <p>There is a table on a page which I update over ajax. There are some scripts those use content of a table. For instance, one of them uses "<code>Check all / Uncheck all</code>" checkBox on a table to <code>check/uncheck</code> the other checkboxes on that table.</p>
  
  <p>When I do an ajax request, it returns almost <strong>the same</strong> content of a table. At least, it's <strong>definitely correct</strong> and should not destroy the functionality of the scripts. However, after that none of the scripts no longer work. Why?</p>
  
  <p>For example, here is the part of a javascript code at *.js file:</p>
  
  <pre><code>$(document).ready(function() {
    $("#check-all").change(function(){
        $(".my_table input[type=checkbox]").prop('checked', this.checked);
      });
  });
  </code></pre>
  
  <p>Before executing ajax, request everything is working well. Note that ajax doesn't return any javascript code, all javascript code is located in an external js file. </p>