title: Accessing elements inside dynamically created divs with HTML/Javascript
body: <p>I'm quite new to javascript and JQuery programming. Usually, to access elements I give them an id, so I can get them like <code>$("#"+id).blabla().</code></p>
  
  <p>But now I need to dynamically create a div, and access elements inside it.</p>
  
  <p>Something like</p>
  
  <pre><code>&lt;div id="automaticallyGeneratedId"&gt;
     &lt;div ???&gt;&lt;/div&gt; &lt;!-- first div --&gt;
     &lt;div ???&gt;&lt;/div&gt; &lt;!-- second div --&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What are the best practices to access and identify each of the inner divs? 
  I generate another id for them? 
  Or what?</p>
  
  <p>I don't have the theory of selectors fully clear.</p>
  
  <p><strong>edit</strong>: modified the question from identifying a single inner div to identifying divs amongs many of them</p>