title: How to set buttons with dynamic ID's clickable jquery
body: <p>I have form that goes like this:</p>
  
  <pre><code>&lt;?php foreach($userID as id):?&gt;
  
  &lt;input type="button" id="ok_&lt;?php echo id?&gt;" value="ok" /&gt;
  &lt;input type="button" id="cancel_&lt;?php echo id?&gt;" value="cancel" /&gt;
  
  &lt;?php endforeach;?&gt;
  
  &lt;script&gt;
  $(document).ready(function(){
  
  //how do i set the click events of these buttons, assuming i have 3 sets of the of the ok and cancel buttons.
  
  });
  &lt;/script&gt;
  </code></pre>