You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
413 B

$("#search").on("keyup", () => {
var searchValue = $("#search").val().toLowerCase();
$(".card .card-body .card-title").each(function () { // es6 arrow function wont work with 'this'
var title = $(this);
if (title.text().toLowerCase().includes(searchValue)) {
$(this).parent().parent().show();
} else {
$(this).parent().parent().hide();
}
});
});