title: jQuery button selector with click event not working
body: <p>Why is this not working?</p>
  
  <pre><code>&lt;div id="download"&gt;
          &lt;button&gt;Download&lt;/button&gt;
  &lt;/div&gt;
  
  $("#download").find( ":button" ).click(function () {
      alert("io");
  });
  </code></pre>
  
  <p>I tried adding a class and an Id to the button element. I also tried </p>
  
  <pre><code>&lt;button&gt;Download&lt;/button&gt;
  
  $(':button').click(function(){
      alert("io");
  }
  </code></pre>