jquery 監聽 input 輸入

 

<input type = "text" id = "searchName">this

$("#searchName").on("input",function () {
    var val = $(this).val();
    
   setTimeout('search()',500);   //延時0.5 秒查詢
 
});
相關文章
相關標籤/搜索