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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -