javascript - jquery DataTables, error with trying to make every column visible -


var words_data used datatable, , referenced throughout file.

i need make every column visible in words_data. tried use columns().every(...) methods following code...

       words_table.columns().every( function() {        $(this).visible(true);     }); 

gives error of uncaught typeerror: $(...).visible not function

a little confused on how @ point, unless $(this) doesn't iterate on each column.

use :

   this.visible(true); 

instead of

   $(this).visible(true); 

refer : https://jsfiddle.net/lxlvl20j/16/


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -