Jquery选择-元素(分离,在firebug中变暗)

Jquery选择-元素(分离,在firebug中变暗),jquery,firebug,knockout.js,Jquery,Firebug,Knockout.js,我试图在页面的一部分中选择一些元素 $table = $(".table"); console.log($table);//this is fine $edit_butts = $(".btn_edit", $table); console.log($edit_butts);//elements dimmed and seemingly detached from dom - no click binding etc work 现在有人知道为什么这些元素被删除了吗 控制台中 bright an

我试图在页面的一部分中选择一些元素

$table = $(".table");
console.log($table);//this is fine
$edit_butts = $(".btn_edit", $table);
console.log($edit_butts);//elements dimmed and seemingly detached from dom - no click binding etc work
现在有人知道为什么这些元素被删除了吗

控制台中

bright and when clicked element found in dom
    jQuery(table.table)

dimmed, when clicked firebug goes to edit screen
    jQuery(div.btn_edit, div.btn_edit, div.btn_edit, div.btn_edit, div.btn_edit, div.btn_edit, div.btn_edit, div.btn_edit)
非常感谢您的帮助

我还应该指出,但我不确定页面的相关部分是否用knockoutjswith指令包装

<table  class="table>
<!-- ko with: model.item -->
edit butts
<div class="btn_edit"></div>
<!-- /ko -->
</table>

带有
绑定的
将删除应用它的元素的子元素,并保留一个副本用作模板。如果
绑定的项目发生了更改,则使用模板生成内容,甚至在初始呈现时也会发生这种情况


带有
绑定的
实际上相当于
模板:{if:myData,data:myData}
,它使用匿名模板(元素的子元素)

因此,元素将从DOM中删除。我不确定您的目标,但是如果您在调用
ko.applyBindings
之后找到元素,那么您将有一个对
绑定中使用的当前元素的引用