lundi 25 juillet 2016

[JavaScript][jQuery Datatables] Hiding rows with class "hidden" after change the checkbox

I'm using jQuery datatables. I'd like to hide all rows with class="hidden".

This code:

var table = $('#table1').DataTable();
table.rows('.hidden').hide();

It's not working (rows are not hidden), and I see this text in console:

table.rows(...).hide is not a function

How can I use class="hidden" to hide all rows?

Aucun commentaire:

Enregistrer un commentaire