Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var $rows = $('tbody tr.visall');
- $('#search').keydown(function(e) {
- if (e.keyCode == 13){
- $('.load').show();
- var val = $.trim($(this).val()).replace(/ +/g, ' ').toLowerCase();
- $rows.show().filter(function () {
- var text = $(this).text().replace(/s+/g, ' ').toLowerCase();
- return !~text.indexOf(val);
- }).hide();
- };$('.load').hide();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement