【发布时间】:2013-11-06 13:38:45
【问题描述】:
我有一个包含多个列的表,我想使用多个选择对其进行过滤。每个选择对应一个特定的列。 When a select change, the table will show only rows where the column correspondent to the select has the same value.
我已经开始了一点 JSFiddle。任何想法都会有所帮助。
到目前为止我做了什么:
var filter = $('select');
filter.change(function() {
var table = $('table');
var rows = $('tr');
var filterValue = $(this).val();
});
【问题讨论】: