code not working
code not working

am applying this code to my document and nothing happens when i click on a row in the table. What could be the problem?
$(document).ready( function () { var table = $('#expenseList').dataTable(); $('#expenseList tbody').on('click', 'tr', function () { var data = table.row(this).data(); console.log(data); }); } );This discussion has been closed.