【发布时间】:2010-11-22 15:13:29
【问题描述】:
高级标题,简单问题:
如何在 jQuery 中执行以下操作(隐藏除 $(this) 之外的所有内容)?
$("table tr").click(function() {
$("table tr:not(" + $(this) + ")").hide();
// $(this) is only to illustrate my problem
$("table tr").show();
});
【问题讨论】:
标签: jquery jquery-selectors this