title: How to add a onclick function on every Datatable Table tr?
body: <p>I am using datatable using ajax calling and the script for datatable is like -</p>
  
  <pre><code>$(document).ready(function() {
      $('#example').DataTable({
          "columns": [
              { "data": "name" },
              { "data": "position" },
              { "data": "salary" }
          ]
      });
  });
  </code></pre>
  
  <p>and every row is showing like - <code>"&lt;tr role="row" class="even"&gt;"</code></p>
  
  <p>But i need to put a onlcick function every datatable rows like - <code>"&lt;tr ondblclick="getDetails(id)" role="row" class="even"&gt;"</code> </p>
  
  <p>so how can i do that any suggestion ?</p>
  
  <p>Thanks in advance.</p>