【发布时间】:2015-01-28 19:59:33
【问题描述】:
我正在尝试根据所选下拉列表过滤两行。我没有显示下一个表格行“饼干”。
$("#filter").change(function () {
$("#thisTable").find("td").each(function () {
if ($(this).text() != $("#filter").val())
$(this).parent().hide();
else
$(this).parent().show();
if ($("#filter").val() == "ALL")
$(this).parent().show();
});});
http://jsfiddle.net/nope_four/xp7zmpju/
我认为这个问题之前已经被问过并得到了回答,但我的回答是空的。提前致谢。
【问题讨论】:
标签: jquery