Datatables hide/show rows

Datatables hide/show rows

RushikPatelRushikPatel Posts: 4Questions: 1Answers: 0

How to possible some rows are hide and show conditionally using checkbox checked?

Replies

  • bindridbindrid Posts: 730Questions: 0Answers: 119

    assuming the checkboxes are not in the datatable, You would use the click event handler on the checkbox to apply a search that is represented by the checkbox on the

    for example

       $(checkbox).on("click", function() {
           if( this.checked) {
               $("#example").DataTable().search(this.value).draw();
           }
    
    });
    
This discussion has been closed.