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.
 
 
 
 

23 lines
709 B

$("#search").on("keyup", () => {
var searchValue = $("#search").val().toLowerCase();
$(".card .card-body .card-title").each(function () {
var title = $(this);
if (title.text().toLowerCase().includes(searchValue)) {
$(this).parent().parent().show();
} else {
$(this).parent().parent().hide();
}
});
});
$("#search-docs").on("keyup", () => {
var searchValue = $("#search-docs").val().toLowerCase();
$(".search-docs").each(function () {
var title = $(this).children();
if (title.text().toLowerCase().includes(searchValue)) {
$(this).show();
} else {
$(this).hide();
}
});
});