title: How to select a row in Jquery datatable
body: <p>I am using <a href="http://datatables.net/" rel="noreferrer">datatables</a> in my application. Whenever user click on any row I want to highlight it and pick some values from selected row.</p>
  
  <pre><code>"oTableTools": {
                 "sRowSelect": "single",
  
                 "fnRowSelected": function ( node ) {
                     var s=$(node).children();
                         alert("Selected Row : " + $s[0]);
                     }
  </code></pre>
  
  <p>I tried  <code>sRowSelect</code> and <code>fnRowSelected</code> but no luck. The row is not highlighted and  neither <code>fnRowSelected</code>  is called. Even no error on console. </p>
  
  <p>Here is my complete code </p>
  
  <pre><code>  var userTable = $('#users').dataTable({
              "bPaginate": true,
              "bScrollCollapse": true,
              "iDisplayLength": 10,
              "bFilter": false,
              "bJQueryUI": true,
              "sPaginationType": "full_numbers",
              "oLanguage": {
                  "sLengthMenu": "Display _MENU_ records per page",
                  "sZeroRecords": "Enter a string and click on search",
                  "sInfo": "Showing _START_ to _END_ of _TOTAL_ results",
                  "sInfoEmpty": "Showing 0 to 0 of 0 results",
                  "sInfoFiltered": "(filtered from _MAX_ total results)"
              },
              "aaSorting": [[ 0, "asc" ]],
              "aoColumns": [/* Name */ null,
                            /*Institution*/null,
                            /*Email*/null],
             "oTableTools": {
                 "sRowSelect": "single",
  
                 "fnRowSelected": function ( node ) {
                   alert("Clicked");
                     }
             }       
          });    
  </code></pre>
  
  <p>Am I missing anything ?     </p>
  
  <p><strong>EDIT:</strong><br>
  Now able to highlight selected row.Added class="display" to HTML table. Still wondering why I didn't find this in datatable docs. Now looking how to collect selected values. </p>