[html]
<!DOCTYPE html PUBLIC "
<html xmlns="
<head>
<meta http
<title>JQuery表格內容過濾</title>
<style type="text/css">
table{ border:
div{font:normal
td{ font:normal
th{ font:bold
</style>
<!
<script src="jquery
<script type="text/javascript">
$(function(){
$("#filterName")
$("table tbody tr")
})
})
</script>
</head>
<body>
<div> <br/> 篩選
<table>
<thead>
<tr><th>姓名</th><th>性別</th><th>暫住地</th></tr>
</thead>
<tbody>
<tr><td>SYJ</td><td>男</td><td>河北秦皇島市</td></tr>
<tr><td>李四</td><td>女</td><td>北京北京市</td></tr>
<tr><td>王五</td><td>男</td><td>河北秦皇島市</td></tr>
<tr><td>趙六</td><td>男</td><td>河北唐山市</td></tr>
<tr><td>張三</td><td>男</td><td>內蒙古呼和浩特市</td></tr>
<tr><td>王六</td><td>女</td><td>內蒙古包頭市</td></tr>
<tr><td>二狗</td><td>男</td><td>北京北京市</td></tr>
<tr><td>李字</td><td>女</td><td>河北秦皇島市</td></tr>
<tr><td>二蛋</td><td>男</td><td>東北遼寧省</td></tr>
</tbody>
</table>
</body>
</html>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20654.html