title: Jquery on('click') with dynamic button ID
body: <p>I have a comment's reply form which is loop through database, each of the form and reply button are dynamically assigned with difference ID, such as <code>&lt;button type="button" id="btn_reply_comment_'.$row['id'].'"&gt;Post Reply&lt;/button&gt;</code> as well as a form ID with <code>&lt;form id="reply_form_'.$row['id'].'"&gt;</code>.</p>
  
  <p>I want to make an ajax call trigger by the <code>#btn_reply_comment_{follow by dynamic ID}</code>, but I cannot assign dynamic ID to match with which button is clicked, how can it be done?</p>
  
  <p><strong>Jquery to trigger ajax by button click:</strong></p>
  
  <pre><code>$('body').on('click', '#btn_reply_comment_'+id, function(){
      var parameters = $(this).closest('form').serialize();
  
      alert(parameters);
  
      //ajax call here
  
  });
  </code></pre>