标签:inpu style span color tab 内容 script put div
<script type="text/javascript"> $().ready(function() { $("#txtName").keyup( function() { $("table tr:gt(0)").hide(); var $d = $("table tr:gt(0)").filter(":contains(‘" + $.trim($("#txtName").val()) + "‘)"); $d.show(); } ) }) </script>
<div style="margin: 0 auto;"> 动态搜索:<input type="text" id="txtName" /> </div> <table>内容</table>
标签:inpu style span color tab 内容 script put div
原文地址:https://www.cnblogs.com/tangsujuan/p/12861475.html