当特定列行值为null时,JQuery会隐藏行
有下表我如何使用jquery只返回该人有电话号码的行?
Name Phone E-mail John 123456 john@john.com Joe joe@joe.com Phil 654321 phil@phil.com
例如,只有John和Phil才会出现,因为他们只有电话号码。
$('table').parent().children().find("td:nth-child(2):empty").parent().hide();
在这里演示: http : //jsfiddle.net/csdtesting/gLwevx2u/