title: how to capture the click event of a dynamically generated button in jquery
body: <p>i see there is this syntax for detecting any button click</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          $(document).ready(function() {
          $(":button").click(function(event) {
                  alert("Thanks for visiting!" + this.value);
              });
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>but what if i want to only detect a particular button on the page?</p>
  
  <p>EDIT:  this seems fine for buttons that are setup at the beginning but in my case i am creating them dynamically with jquery.  it seems those buttons dont hit this code.  any ideas</p>