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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -