高级标题,简单问题:
如何在jQuery中执行以下操作(隐藏除了之外的所有内容$(this))?
$("table tr").click(function() {
$("table tr:not(" + $(this) + ")").hide();
// $(this) is only to illustrate my problem
$("table tr").show();
});
Run Code Online (Sandbox Code Playgroud)