📜  关于用于搜索 php 代码示例的 keyup jquery

📅  最后修改于: 2022-03-11 14:53:56.945000             🧑  作者: Mango

代码示例1
// javascript / jquery
function searchClients() {
   var clientSearch = document.getElementById("clientSearch");
   var s = clientSearch.value;
   $('.select-options span').show();
   $('.select-options span:not(:contains("'+s+'"))').hide();
 }

$("#clientSearch").keyup(function() {
  searchClients();
});