当前位置:网站首页>Web page table table, realizing rapid filtering
Web page table table, realizing rapid filtering
2022-07-27 14:50:00 【Purple potato bun】
Who knows
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<!--jQuery-->
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<style>
table {
border:0;
}
p {
font:normal 12px/17px Arial;
}
td {
font:normal 12px/17px Arial;
padding:2px;
width:100px;
}
th {
font:bold 12px/17px Arial;
text-align:left;
padding:4px;
border-bottom:1px solid #333;
width:100px;
}
.even {
background:#FFF38F;
}
/* Even row style */
.odd {
background:#FFFFEE;
}
/* Odd row style */
.selected {
background:#FF6500;
color:#fff;
}
</style>
</head>
<body>
<p>
<br> Screening :
<input id="filterName" name="filterName">
<span class="search"> Search for </span>
<br>
</p>
<table>
<thead>
<tr><th> full name </th><th> Gender </th><th> Temporary residence </th></tr>
</thead>
<tbody>
<tr><td>SYJ</td><td> male </td><td> Qinhuangdao City, Hebei Province </td></tr>
<tr><td> Li Si </td><td> Woman </td><td> Beijing, Beijing </td></tr>
<tr><td> Wang Wu </td><td> male </td><td> Qinhuangdao City, Hebei Province </td></tr>
<tr><td> Zhao Liu </td><td> male </td><td> Tangshan City, Hebei Province </td></tr>
<tr><td> Zhang San </td><td> male </td><td> Hohhot, Inner Mongolia </td></tr>
<tr><td> Nannan </td><td> Woman </td><td> Baotou City, Inner Mongolia </td></tr>
<tr><td> Bei Bei </td><td> male </td><td> Beijing, Beijing </td></tr>
<tr><td> West </td><td> Woman </td><td> Qinhuangdao City, Hebei Province </td></tr>
<tr><td> Winter and winter </td><td> male </td><td> Northeast Liaoning Province </td></tr>
</tbody>
</table>
<!-- Sorting function -->
<script type="text/javascript">
$(function() {
$('.search').on('click', function() {
// console.log($('#filterName').val());
$('table tbody tr').hide()
.filter(":contains('" + ($('#filterName').val()) + "')")
.show();
})
})
</script>
</body>
</html> 边栏推荐
- CPU、GPU、NPU的区别
- Docker实践经验:Docker 上部署 mysql8 主从复制
- JS epidemic at home, learning can't stop, 7000 word long text to help you thoroughly understand the prototype and prototype chain
- Automatically configure SSH password free login and cancel SSH password free configuration script
- Architecture - the sublimation of MVC
- Thread knowledge summary
- 在Oracle VirtualBox中导入Kali Linux官方制作的虚拟机
- How to deploy open source Siyuan privately
- 国信证券手机开户安全吗 中山证券靠谱吗
- Nokia's patent business was hit for the first time, and Chinese enterprises are not so easy to knead
猜你喜欢

终于有人把面试必考的动态规划、链表、二叉树、字符串全部撸完了

Graphical SQL is too vivid

Win11壁纸变黑怎么办?Win11壁纸变黑了的解决方法

巨形象的图解 SQL
![[intensive reading of papers] grounded language image pre training (glip)](/img/3a/4ad136065acb8627df9e064ed8ef32.png)
[intensive reading of papers] grounded language image pre training (glip)

Import the virtual machine officially made by Kali Linux into Oracle VirtualBox

腾讯二面:@Bean 与 @Component 用在同一个类上,会怎么样?

汉字风格迁移篇---对抗性区分域适应(L1)Adversarial Discriminative Domain Adaptation

Construction of knowledge map of financial securities and discovery of related stocks from the perspective of knowledge relevance

Construction and empirical research of post talent demand analysis framework based on recruitment advertisement
随机推荐
Tencent two sides: @bean and @component are used in the same class, what will happen?
CPU、GPU、NPU的区别
Redis
arduino+ZE08-CH2O甲醛模块,输出甲醛含量
Navicate报错access violation at address 00000000
OBS 进阶之 DXGI 采集屏幕流程,并如何修改为自己的光标
DXGI 方式采集流程
Secondary spanning tree [template]
What is the execution method of the stand-alone parallel query of PostgreSQL?
Understand JS execution context in an article
文献翻译__基于自适应全变差L1正则化的椒盐图像去噪
c语言分层理解(c语言数组)
Failed to connect to ResourceManager
Interprocess communication
Lesson 3: SPFA seeking the shortest path
DirectX 入门知识
网上券商APP开户安全有保障吗?
Shell programming specifications and variables
Ten thousand words detailed Google play online application standard package format AAB
SkyWalking分布式系统应用程序性能监控工具-中