我有div标签,我在该标签中有一个自由文本(在它自己的)。Jquery选择Div标签中的自由文本
<div id= "myDiv">
This is free text
</div>
如何选择该自由文本并根据它的值,我做了一些其他的东西。
如何选择该自由文本?
更新:在div标签中的数据是这样的
<div id= "myDiv">
This is free text one
This is free text two
This is free text three.
</div>
我要选择的第一个?可能吗?
$( '#PartialUpdateSectionForCallBack')[0] .childNodes [0] .nodeValue –