如图,求大神解答!要实现like查询
执行函数要记得加()
<button class="SBtn" onclick="SearchCompany()">搜索</button>
<script>
function SearchCompany(){
var s = $('.SearchBox').val();
if (s != '') {
$('#dxdx div.Company').each(function () {
if (this.innerHTML.indexOf(s) != -1) $(this).show().prev().show();
else $(this).hide().prev().hide()
});
}
}
</script>