javascript - Error when using datatables callback -
i have datatables table set call json server. able format rows based on data in each row this:
https://datatables.net/examples/advanced_init/row_callback.html
so using code in link code so:
<script> $(document).ready(function() { testtable = $('#mylist').datatable({ // current proprerties , ajax stuff "createdrow": function ( row, data, index ) { if (my own conditional) { $('td', row).eq(5).addclass('highlight'); } } })
however when run error:
uncaught typeerror: cannot read property 'replace' of undefined
i new jquery , datatables i'm not of start this. has come across before?
Comments
Post a Comment