title: Dynamic clicked button - access dynamic content
body: <p>I have a button <code>thumb</code> that is created later (not exist when document load), </p>
  
  <pre><code>$(document).on('click', '.thumb', function(){
    console.log("clicked",$(".productPhoto"),$(this).attr("src"));
  </code></pre>
  
  <p>The issue is that <code>productPhoto</code> is also being created later, and although <strong>i can click the thumb</strong>, if i try to print <code>productPhoto</code>, i get nothing, but the element is there when i click.</p>
  
  <p>Is there a way to access also an element that is being created later (on click)?
  (<em>without</em> registering it for click on creation)</p>