Accessing elements inside dynamically created divs with HTML/Javascript
===

I'm quite new to javascript and JQuery programming. Usually, to access elements I give them an id, so I can get them like `$("#"+id).blabla().`

But now I need to dynamically create a div, and access elements inside it.

Something like

    <div id="automaticallyGeneratedId">
       <div ???></div>
    </div>

What are the best practices to access and identify the inner div? 
I generate another id for it? 
Or what?

I don't have the theory of selectors fully clear.

