jQuery("#myInput").on("keyup", function () { var value = $(this).val().toLowerCase(); jQuery("#myDIV *").filter(function () { $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1) }); }); RemoveClass(x[i], "show"); if (x[i].className.indexOf(c) > -1) AddClass(x[i], "show"); } }
fix invalid codeWed, 01 Feb 2023