title: How to access a dynamically created object
body: <p>I am creating an object dynamically. I am wondering how do I access it? Some of these objects need to be hidden through other means than a click (programmatically, button clicks, links, etc). So I dont think I could use .on. How would I go about accessing these to hide them?</p>
  
  <pre><code>$(document).ready(function() {
  $('body').append('&lt;div id="testdiv"&gt;Test DIV&lt;/div&gt;');
  
  }); 
  
  $('#testdiv').hide();
  </code></pre>