title: get the id from <tr> tag from Jquery Data tables
body: <p>I'm trying to make a table with Data Table, after selecting a row, there is a button that takes the user to a new page with more detailed information.</p>
  
  <p>after following the tutorial here <a href="https://datatables.net/examples/api/select_single_row.html" rel="nofollow">https://datatables.net/examples/api/select_single_row.html</a></p>
  
  <p>I'm thinking of setting  the <code>&lt;tr id="ID"&gt;</code> to a unique identifier, and upon selecting the row then pressing the button, it will pass along the id and get more detailed information.</p>
  
  <p>however I'm having difficulty getting this id field, I'm looking for something like</p>
  
  <pre><code>  $('#detailButton').click(function(){
      window.location = 'detail.php?id=' + table.row('.selected').id;
    });
  </code></pre>
  
  <p>EDIT:
  Sorry to clarify, i only wanted 1 button at the bottom of the page, not one button per row, also not on clicking the row.
  in the tutorial, when the row is selected, it sets the class to 'selected' so I was hoping to get the id of the row that has the class selected.</p>