返回HTML如果我在#parent
点击我要回里面的文字和不回报嵌套
层内的文本(#child-parent
,#child
)jQuery的:从DIV,而不是孩子
<div id='parent'>
this text is for parent
<div id='child-parent'>
this text if for child-parent
<div id='child'>
and this text is for child.
</div>
</div>
</div>
这样的:
$('#parent').html() = "this text is for parent"
,而不是这样的:
$('#parent').html() = "this text is for parent this text is for child-parent and this text is for child"
哇,非常感谢你! – Zebra 2010-10-08 13:46:33
非常感谢,我发现了三种新的jQuery方法的存在:) – 2010-10-08 13:56:38