Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $("#search").keyup(function () {
- var value = this.value.toLowerCase().trim();
- $("table tr").each(function (index) {
- if (!index) return;
- $(this).find("td").each(function () {
- var id = $(this).text().toLowerCase().trim();
- var not_found = (id.indexOf(value) == -1);
- $(this).closest('tr').toggle(!not_found);
- return not_found;
- });
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement