如何利用jquery 实现表格数据的搜索功能

 1 <script type="text/javascript">
 2   $(function(){
 3      $('#ss').click(function(){
 4         var sstxt=$('#filtertxt').val();
 5         $("table tbody tr").hide().filter(":contains('"+sstxt+"')").show();
 9      })
11   })
12 </script>

 

posted @ 2018-10-19 09:45  月眸  阅读(1004)  评论(0编辑  收藏  举报