title: jQuery .click() not working?
body: <p>I generate the set of buttons within html table as follows and then I want to call to function when it click. </p>
  
  <pre><code>$.each(childData, function(key, item) {
      var packPath = key.replace(/_/g, "/"); //Replace underscore with slash
  
      div.innerHTML = div.innerHTML + '&lt;td&gt;'+key+'&lt;/td&gt;'
                  + '&lt;td&gt;&lt;button type="button" data-id="'+key+'" class="download btn btn-success btn-xs"&gt;Originals&lt;/li&gt;&lt;/td&gt;&lt;/div&gt;'; 
  
  }) 
  </code></pre>
  
  <p>This is how I call the function but it's not working.</p>
  
  <pre><code>$(".download").click(function(){
      alert();
  });
  </code></pre>
  
  <p>Where is the wrong in above code?</p>