<input type="text" ></input>
<input type="button" style="background-color:#FFD7D7" value="搜索"></input>
<script type="text/javascript">
$(function(){
$("input[type=button]").click(function(){
var txt=$("input[type=text]").val();
if($.trim(txt)!=""){
$("table tr:not('#theader')").hide().filter(":contains('"+txt+"')").show().css("background","#FFD7D7");
}else{
$("table tr:not('#theader')").css("background","#fff").show();
}
});})</script>