jquery 表格过滤 表格搜索 无刷新实时搜索
JavaScript Code
- <script>
- var searchTemplate = "<div class='row form-inline'><label style='float: right;'>Search: <input type='text' placeholder='(start typing)'></label></div>"
- $(".table-sieve").sieve({ searchTemplate: searchTemplate });
- searchTemplate = "<div class='row form-inline'><label style='float: right;'>Find a Quote: <input type='text' placeholder='(try typing "einstein")'></label></div>"
- $(".p-sieve").sieve({ searchTemplate: searchTemplate, itemSelector: "p" });
- </script>
原文地址:http://www.freejs.net/article_jquerywenzi_250.html