title: jquery: Attach function to elements not yet loaded
body: <p>I attach a function to each th-element of a certain table:</p>
  
  <pre><code>$(document).ready(function()
  {
      $('#table_id thead th').each(function()
      {
         $(this).disableTextSelect(); // disableTextSelect() is user defined function extending jquery
      });
  }
  </code></pre>
  
  <p>This works fine, if the table has already loaded.
  In order to attach it to the table, if it will be loaded in the future I have to use .on(). But i don't know how :-(</p>
  
  <pre><code>$(document).on('which event?!', '#table_id thead th', function()
  {
      $(this).disableTextSelect();
  }); 
  </code></pre>
  
  <p>Thank you very much,
  Phantom</p>