当鼠标抬起进行数据搜索展现
$('.selectBox input').keyup(function() {
var me = $(this), v = me.val().replace(/^\s+|\s+$/g,"");
var lis = $(this).parents(".title").siblings(".content").find("li");
if(v==""){
lis.filter(":hidden").show();
}else{
lis.hide().filter(":contains('"+me.val()+"')").show();
}
});
相关文章