jquery selector cannot find tbody Datatable filled with JSON? -


maybe of have encountered problem : use <table> filled json. on html part, create <table> , <tbody>. works fine, when want select tbody whith jquery : $('#mytable tbody'), tbody not find ! css , firebug able see tbody, not jquery !

do know way select tbody using jquery ?

i solved problem using :

var otable = $('#my_table').datatable(); var cells = otable.column( 1 ).nodes();  // first column number 0 $( cells ).addclass('highlight');  // each <td> ... 

you can select tds contain "none" :

var cells = otable.cells( ":contains('none')" ).nodes(); 

i not sure these functions available jquery, think come datatable library.


Comments