title: jquery dataTables - how to extract row data onclick event
body: <p>I'm trying to familiarize myself with the jquery dataTables plug in: <a href="http://www.datatables.net/manual/server-side#Sent-parameters" rel="noreferrer">http://www.datatables.net/manual/server-side#Sent-parameters</a></p>
  
  <p><strong>What's Working</strong></p>
  
  <p>I have json data being returned from the server to my client and the table is being populated. </p>
  
  <p><strong>What's Not working</strong></p>
  
  <p>I need to be able to capture the data in a given row, when the row is selected / clicked on by the end user. </p>
  
  <p>Here's my code: <a href="http://jsfiddle.net/e3nk137y/1515/" rel="noreferrer">http://jsfiddle.net/e3nk137y/1515/</a></p>
  
  <pre><code>$("#users tr").click(function(){
    alert($(this).find("pID").val());
     });
  </code></pre>
  
  <p>The above javascript is what I've been playing around with.  Trouble is that the ajax call happens automagically and I'm not the one creating the rows in the table. Ultimately, I need to be able to grab some of the fields in each row, in addition to the ID / pID</p>
  
  <p><strong>What I've tried so far</strong></p>
  
  <p>Besides the playing with the javascript code, I've also been reviewing this: <a href="http://datatables.net/examples/api/select_single_row.html" rel="noreferrer">http://datatables.net/examples/api/select_single_row.html</a>
  But in that example, all the data is defined client side, so it makes it easy to specify either an id or a class for each table row</p>
  
  <p>Any suggestions would be appreciated. </p>