title: onClick not working on ajax generated content
body: <p>My code doesn't show errors, but also doesn't work as it should. The output from the ajax call is working fine but I just can't get anything out of the <code>onClick</code>, no errors message, nothing.</p>
  
  <p><strong>The HTML</strong></p>
  
  <pre><code>&lt;div id="serials"&gt;&lt;/div&gt;
  &lt;div id="accounts_info_key" style="text-align:left"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>The Ajax call</strong></p>
  
  <pre><code>$(document).ready(function() { 
  $('.tab2').click(function(){
          var account_id = $('#account_id').val();
                $.ajax({
                   url: 'ajax/account_info_serials_ajax.php',
                   type:'POST',
                   dataType: 'json',
                   data: 'account_id='+account_id,
                          success: function(response){
                  $('#serials').html(response.table),
                  $('#accounts_info_key').html(response.key),
                  $('.drop_down').hide();
                  },
                error:function (xhr, ajaxOptions, thrownError){
                alert(thrownError);
                 } // End of success function of ajax form
                }); //end of ajax
         });//close trigger
    });//close whole function
  </code></pre>
  
  <p><strong>The PHP</strong></p>
  
  <pre><code>   $response = '';
     $response .='&lt;div class="question"&gt;';
     $response .='plop';
  
     $response .='&lt;/div&gt;';
     $response .='&lt;div class="drop_down"&gt;';
     $response .='bob';
     $response .='&lt;/div&gt;';
  
     $output_array = array(
                'table' =&gt; $response,
                'key' =&gt; $key,
                'count' =&gt; $count 
      );
  
    echo json_encode($output_array);
  </code></pre>
  
  <p><strong>The jquery onclick</strong></p>
  
  <pre><code>$(document).ready(function() {  
      $('#serials').on("click", ".question", function(e){
          alert('smeg');  
      });
  });
  </code></pre>
  
  <p>Please note, I am not asking how to do it, I am asking why my version is not working, it is NOT a duplicate question</p>