mardi 20 août 2019

How can filter datatable values by jquery

Hi Guys i have two checkbox and i want when check the first checkbox hide include span class = mm--x in datatable or when i check other checkbox hide include span class = mm--y in datatable. is it possible ? or the other method like include "ss" in rows' Column 5.

here is my code:

$("#checkbox1").click(function () {               
                    $(".myTable span." + 'mm--x').hide(); 
                }
            });

$("#checkbox2").click(function () {               
                    $(".myTable span." + 'mm--y').hide(); 
                }
            });




Aucun commentaire:

Enregistrer un commentaire