title: How to get the row number of selected row of jquery datatable
body: <p>I am trying to get the row number from datatable and pass in to some update function.Some time it giving row number as [Object object] Here is my code:</p>
  
  <pre><code>var table = $('#example').DataTable();
  $('#example tbody').on( 'click', 'tr', function () 
  {
  var idx = table.row( this ).index();
  alert(idx);//Some times it alerts [Object object] 
  }
  </code></pre>