mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 23:55:24 +00:00
13 lines
320 B
JavaScript
13 lines
320 B
JavaScript
|
function filter_table() {
|
||
|
var rex = new RegExp($(this).val(), 'i');
|
||
|
$('.searchable tr').hide();
|
||
|
$('.searchable tr').filter(function () {
|
||
|
return rex.test($(this).text());
|
||
|
}).show();
|
||
|
}
|
||
|
$(document).ready(function () {
|
||
|
(function ($) {
|
||
|
$('#filter').keyup(filter_table)
|
||
|
}(jQuery));
|
||
|
});
|