Home  >  Article  >  Web Front-end  >  jquery table content filtering implementation ideas and code_jquery

jquery table content filtering implementation ideas and code_jquery

WBOY
WBOYOriginal
2016-05-16 17:36:45948browse

复制代码 代码如下:

筛选:



















姓名性别地址
一班
大爷男10武汉1
大爷男9武汉2
大爷男8武汉3
二班
大爷男7武汉4
大爷男6武汉5
大爷男5武汉6
大爷男4武汉7
三班
大爷男3武汉8
大爷男2武汉9
大爷男1武汉10



复制代码 代码如下:

// jquery表格内容筛选





<script> <br>$(function(){ <br>$('tr.parent').click(function(){ <br>$(this).toggleClass("selected").siblings('.child_' this.id).toggle(); <br>}); <br>}); <br></script>

Untitled Document









































姓名 年龄
人力部
脚本 20
脚本 20
脚本 20
技术部
脚本 20
脚本 20
脚本 20



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn