title: Select elements dynamically loaded
body: <p>I'm facing a issue getting dynamically loaded elements in the dom that I cannot find the right answer to solve this issue.</p>
  
  <p>Let's say I have an MVC architecture where I load all my views into a container div.</p>
  
  <p>So I load a view which also has a ul element, now I create multiples li dynamically and when I call.</p>
  
  <pre><code> ul = document.getElementById("idelement");
  </code></pre>
  
  <p>I get undefined, even if the view is already loaded.</p>
  
  <p>I tried using, (document).ready, event delegation on(load), among other techniques and I cannot find the rigth solution for this.</p>
  
  <p>Any advices?</p>